I\'d like to have my Bootstrap menu automatically drop down on hover, rather than having to click the menu title. I\'d also like to lose the little arrows next to the menu t
I have published a proper plugin for the Bootstrap 3 dropdown hover functionality, in which you can even define what happens when clicking on the dropdown-toggle
element (the click can be disabled):
https://github.com/istvan-ujjmeszaros/bootstrap-dropdown-hover
I had issues with all the previously existing solutions. The simple CSS ones are not using the .open
class on the .dropdown
, so there will be no feedback on the drop-down toggle element when the drop-down is visible.
The js ones are interfering with clicking on .dropdown-toggle
, so the dropdown shows up on hover, then hides it when clicking on an opened drop-down, and moving out the mouse will trigger the drop-down to show up again. Some of the js solutions are breaking iOS compatibility, some plugins are not working on modern desktop browsers which are supporting the touch events.
That's why I made the Bootstrap Dropdown Hover plugin which prevents all these issues by using only the standard Bootstrap javascript API, without any hack. Even the Aria attributes are working fine with this plugin.