I have noticed what seems to be a bug in the Moodle implementation of Bootstrap and just wondered if anyone else is experiencing the same issue.
When I have a dropdown menu in the navbar at the top of the screen it seems that the menu only opens when I click on the text part of the navigation and not on the "caret".
In the code sample below if I click on the <i> or <b> elements of the link the dropdown does not open, it only opens if I click on the "My Dashboard" text. In testing if I surround "My" with a span or other html element it will also not trigger the dropdown.
<li class="dropdown"><a href="http://localhost/moodle/my/index.php" class="dropdown-toggle" data-toggle="dropdown" title="My Dashboard"><i class="fa fa-dashboard"></i>My Dashboard<b class="caret"></b></a><ul class="dropdown-menu"><li>...</li></ul></li>
In testing it appears that the class called open is appended after the dropdown class on the li element and removed again immediately when clicking on the <i> or <b> but just toggles correctly clicking on the text.
If I go to http://getbootstrap.com/ and try there the whole of the dropdown will trigger the opening of the menu.
I have tested this on a couple of sites using Moodle 2.7 with the themes Clean, More, Essential and Aardvark.
N.B. I have removed all of the YUI ID elements from the code to make it more legible