how to disable autocomplete auto position?
want to show autocomplete options always bottom.
https://codesandbox.io/s/material-demo-forked-t1luy?file=/demo.js
Add popper props with modifiers:
<Autocomplete
id="combo-box-demo"
options={top100Films}
/* ...yourProps */
componentsProps={{
popper: {
modifiers: [
{
name: 'flip',
enabled: false
},
{
name: 'preventOverflow',
enabled: false
}
]
}
}}
renderInput={(params) => (
<TextField {...params} label="Combo box" variant="outlined" />
)}
/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With