Skip to content

Commit

Permalink
Fix: combobox[disablePortal] does not work inside flex
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Oct 26, 2020
1 parent 6983ec7 commit e062b2b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
20 changes: 11 additions & 9 deletions docs/src/pages/components/autocomplete/ComboBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ import Autocomplete from '@material-ui/core/Autocomplete';

export default function ComboBox() {
return (
<Autocomplete
disablePortal
id="combo-box-demo"
options={top100Films}
style={{ width: 300 }}
renderInput={(params) => (
<TextField {...params} label="Movie" variant="outlined" />
)}
/>
<div>
<Autocomplete
disablePortal
id="combo-box-demo"
options={top100Films}
style={{ width: 300 }}
renderInput={(params) => (
<TextField {...params} label="Movie" variant="outlined" />
)}
/>
</div>
);
}

Expand Down
20 changes: 11 additions & 9 deletions docs/src/pages/components/autocomplete/ComboBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ import Autocomplete from '@material-ui/core/Autocomplete';

export default function ComboBox() {
return (
<Autocomplete
disablePortal
id="combo-box-demo"
options={top100Films}
style={{ width: 300 }}
renderInput={(params) => (
<TextField {...params} label="Movie" variant="outlined" />
)}
/>
<div>
<Autocomplete
disablePortal
id="combo-box-demo"
options={top100Films}
style={{ width: 300 }}
renderInput={(params) => (
<TextField {...params} label="Movie" variant="outlined" />
)}
/>
</div>
);
}

Expand Down

0 comments on commit e062b2b

Please sign in to comment.