Add .disabled
to a <li>
in the dropdown to disable the link.
<div class="dropdown">
<button class="btn dropdown-toggle sr-only" type="button" id="dropdownMenu">Dropdown</button>
<!-- Disabled Item -->
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu" id="dropdownMenu">
<li role="presentation"><a role="menuitem" aria-labelledby="dropdownMenu" tabindex="-1" href="#">Action</a></li>
<li role="presentation" class="disabled"><a role="menuitem" aria-labelledby="dropdownMenu" tabindex="-1" href="#">Another action</a></li>
</ul>
</div>