Open JohnRDOrazio opened 3 years ago
I guess this has been dealt with in issue #382 , where the solution given is to set overflow-y: visible
on the container. In one comment however there is a solution would be more correct in my opinion:
Or - The plugin needs to undergo a major rewrite to create it ".multiselect-container" element in the document body then use position: absolute and JS to place it.
Originally posted by @Tyf0x in https://github.com/davidstutz/bootstrap-multiselect/issues/382#issuecomment-56909815
Of course it would be a bit of work, but this is how jQuery UI deals with this for example. Any kind of popup that should show above other contents is inserted at the body
level. This would be the cleanest solution in my opinion, requiring a reworking of the plugin...
I have placed some multiselects inside of a card, when I click a button near the bottom edge of the card to open the multiselect it is chopped off by the card. I see that popupContainer has a z-index of 999, however the z-index only competes with sibling elements. So in order to have the popupContainer show above everything else without getting chopped off, it would need to reside as a direct child of
body
.However it is not enough to change
because apparently something is expecting the
this.$popupContainer
to be a child ofthis.$container
. Simply making it a child of the body element means bad things start happening. Could anyone point out what it is that expects thepopupContainer
to be a child ofcontainer
? I've skimmed over the code but can't quite pinpoint it. I see this error in the console when trying to append to body:Some attribute is not able to be set correctly.