davidstutz / bootstrap-multiselect

JQuery multiselect plugin based on Twitter Bootstrap.
https://davidstutz.github.io/bootstrap-multiselect/
Other
3.67k stars 1.98k forks source link

Option Group between Option Select Issue #1222

Closed nkwoo closed 2 years ago

nkwoo commented 2 years ago

I use optGroup and sometimes put in options without groups, but there is an issue of selecting up to the next group element when clicking in the current library.

The PR performs the following tasks.

Before

https://jsfiddle.net/nkwoo/wbp6s82h/

original

After

https://jsfiddle.net/nkwoo/s5zyv0gb/

edit