After creating a dropdown button, I encountered an issue where replicating it multiple times resulted in all the buttons on the page opening simultaneously. I initially thought that wrapping the button in a class called "dropdown" would prevent this from happening.
I'm confused about what might be causing this behavior. Can someone shed some light on this?
<li class="text-middle">
<div id="dropdown_m" class="dropdown">
<button class="button button-sm button-secondary button-nina dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Dropdown Items </button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
<a class="dropdown-item" href="#">Option 1</a>
<a class="dropdown-item" href="#">Option 2</a>
<a class="dropdown-item" href="#">Option 3</a>
<a class="dropdown-item" href="#">Option 4</a>
<a class="dropdown-item" href="#">Option 5</a>
</div>
</div>
</li>