Dropdown with data-show="hover" & click
Consider the "hover" dropdown in the example page. Here's the code:
<a class="dropdown-toggle" href="#">Demo dropdown</a>
<ul class="dropdown-menu" data-show="hover" data-role="dropdown" style="display: none;">
<li>
<a class="dropdown-toggle" href="#">Right dropdown</a>
<ul class="dropdown-menu" data-show="hover">
<li><a href="#">Sublink 1</a></li>
<li><a href="#">Sublink 2</a></li>
<li><a href="#">Sublink 3</a></li>
<li class="divider"></li>
<li><a href="#">Sublink 3</a></li>
</ul>
</li>
<li>
<a class="dropdown-toggle" href="#">Left dropdown</a>
<ul class="dropdown-menu " data-show="hover">
<li><a href="#">Sublink 1</a></li>
<li><a href="#">Sublink 2</a></li>
<li><a href="#">Sublink 3</a></li>
<li class="divider"></li>
<li><a href="#">Sublink 3</a></li>
</ul>
</li>
<li>
<a class="dropdown-toggle" href="#">Drop Up</a>
<ul class="dropdown-menu " data-show="hover">
<li><a href="#">Sublink 1</a></li>
<li><a href="#">Sublink 2</a></li>
<li><a href="#">Sublink 3</a></li>
<li class="divider"></li>
<li><a href="#">Sublink 3</a></li>
</ul>
</li>
</ul>
That code works great, but, if a user clicks on a the hover trigger stops. Hover the dd not trigger the menu (or sub-menu).
MB
I confirm this problem. I really would like to see this issue fixed, please.
Thanks in advance.
This is happening because when you click on the menu, the style of the dropdown is being set to display: block and when you click again, it is set to display: none, instead of just removing the display: block. This is added by the jQuery hide(), fadeOut() and slideUp() functions used to animate the qQuery menus.
Since the block is set to hide, the hover function stops working.