Wanted Outcome:
Prevent boostrap from adding dropup class to the dropdown toggle element
Depending where you are on the page (as in the dropdown has more "space" below it than it does above), the dropdown's options either display below or above the actual select. I looked at the bootstrap documentation, and only came across this:
Wrap the dropdown's trigger and the dropdown menu within .dropdown, or another element that declares position: relative;. Then add the menu's HTML.
Then for up:
Dropdown menus can be changed to expand upwards (instead of downwards) by adding .dropup to the parent.
The wrapper however, didn't have any of these 2 classes at all. Therefore, I added the dropdown class to the wrapper:
You can see that there is more space on the bottom of the page than the top still.
However, when scrolling up on the page (with the class dropdown added to the wrapper), bootstrap is automatically adding the dropup class:
I can override with CSS/jQ most likely, but I didn't know if there was anything I was missing as far as default boostrap classes or data attributes that need to be assigned to the wrapper and/or dropdown toggle element itself.


