ttskch / select2-bootstrap4-theme

Select2 v4 theme for Bootstrap4
MIT License
434 stars 207 forks source link

Dropdown incorrectly sets max-height and overflow on group options #13

Closed mgoggin closed 5 years ago

mgoggin commented 5 years ago

When using this theme with Select2 on a <select /> with optgroups the options for each group receive the .select2-results__options class. As a result, each group incorrectly has a max-height and overflow set on it which will scroll each group within the dropdown.

I reckon that only elements which are a direct descendant of .select2-results should have a max-height and overflow.

Here's an example of this in action.

2019-04-04 12 15 45

Fixed with #12.

ttskch commented 5 years ago

closed via #12