I'm currently working on a website using Bootstrap 4.3.1 and I'm facing an issue with getting the dropdown menus to open properly. I have utilized the "dropdown" class within my div.
<div class="dropdown" style="float: right;">
<button class="btn btn-secondary dropdown-toggle" type="button" data-toggle="dropdown" style="float: right">
"HAMLB"<span class="caret"></span>
</button>
<div class="dropdown-menu dropdown-menu-right">
<a class="dropdown-item" href="#">HAMLB</a>
<a class="dropdown-item" href="#">HAMLU</a>
<a class="dropdown-item" href="#">HAMMB</a>
<a class="dropdown-item" href="#">HAMRG</a>
</div>
</div>
Upon initial page load or refresh, I find that I have to click the dropdown menu button twice in order for it to open. However, once I've selected an item or closed the menu, I only need to click the button once to open the dropdown as expected.