dropdown-toggle should be a button, not an anchor
Created by: ForbesLindesay
The example code in the documentation includes a dropdown menu:
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
</ul>
</li>
Since all the a.dropdown-toggle
is doing is triggering a JavaScript action, it is not a link and should instead be a button (i.e. button.dropdown-toggle
) but that looks wrong when you use it in bootstrap.