Here is my demonstration of embedding a Slim Select dropdown within a collapsible div:
CodePen Example<html>
<head>
<!-- MULTIPLE SELECT DROPDOWNS -->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/slim-select/1.18.10/slimselect.min.css"></link>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/slim-select/1.18.10/slimselect.min.js"></script>
</head>
<body>
<button class="collapsible">My Collapsible Div</button>
<div class="content" style="z-index: 900;">
<select id="my_MSD" multiple>
<option value="value 1">Value 1</option>
<option value="value 2">Value 2</option>
<option value="value 3">Value 3</option>
<option value="value 4">Value 4</option>
<option value="value 5">Value 5</option>
<option value="value 6">Value 6</option>
</select>
Howdy<br>
Howdy<br>
Howdy<br>
Howdy<br>
Howdy<br>
Howdy<br>
</div>
<button class="collapsible">Another Collapsible Div</button>
<div class="content" style="z-index: 800;">
Howdy<br>
</div>
</body>
</html>
(Check out the CodePen link above for the complete HTML code along with CSS/Javascript.)
After expanding both sections and opening the Slim Select dropdown, I noticed that only the first three options ("Value 1" through "Value 3") are visible at once. The subsequent options ("Value 4" through "Value 6") are not displayed unless I click and hold the mouse button, which is not the desired functionality.
I have attempted to adjust the z-index values of various elements, but unfortunately, this has not resolved the issue. It seems like Slim Select may be creating a z-index "stacking context" causing this behavior, which I have yet to fully understand.
Is there a straightforward way to ensure all options from "Value 1" to "Value 6" are visible in my implementation?