bootstrap-select
bootstrap-select copied to clipboard
Inconsistent dropupAuto behavior (menu will sometimes dropup even if dropup class isn't applied)
I would like to disable the dropupAuto feature, so that it is a dropdown only select, but setting false in either js or data- doesn't work. Take a look at my jsfiddle. I've also tried setting it globally but to no-avail.
Please help.
Ah, this is happening because Popper is autopositioning the menu (regardless of dropup settings). Setting data-display="static" on your select element (in addition to data-dropup-auto="false") should prevent this from happening.
Thanks that did the trick. It might be worth noting that on the docs.
Note to self: check into setting data-flip="false" on the dropdown button.
data-dropup-auto="false" not working in bootstrap 5.1.3
I dont see this in the docs
Still not seeing this in the documentation. Since popper.js is required to use bootstrap select when using bootstrap 4, It feels like a lot of people would benefit from a note on the data-dropup-auto attribute.