snapappointments / bootstrap-select

:rocket: The jQuery plugin that brings select elements into the 21st century with intuitive multiselection, searching, and much more.
https://developer.snapappointments.com/bootstrap-select/
MIT License
9.85k stars 2.72k forks source link

Select does not display in dropdown-menu #2851

Open londonuk371 opened 11 months ago

londonuk371 commented 11 months ago

Hello,

I know it has been already reported but I did not understand if a fix or a solution has been found on #2167 #2054 #1306

The select just do not show when it's inside a dropdown.

I have added this jQuery not to close the dropdown-menu by clicking in it:

$(document).on("click", ".menuplus", function (e) {
  e.stopPropagation();
});

And the select does not appear because of this stopPropagation condition.

I did a jsfiddle with the minimum required, i feel like it's bootstrap-select plugin bug!

Any chance to make it work?

https://jsfiddle.net/d3yqo9wc/4/

Thank you, Vincent.

londonuk371 commented 11 months ago

I've been helped on https://stackoverflow.com/q/77422441/6602474 and I could update the jsfiddle with a solution:

https://jsfiddle.net/jdtnsmwu/46/

How this could be better? :-)