soundasleep / jquery-dropdown

Bootstrap-style dropdowns with some added features and no dependencies.
Other
767 stars 266 forks source link

Hover to trigger dropdown #27

Closed iainheng closed 11 years ago

iainheng commented 11 years ago

Is there any way that the dropdown can be triggered by hover the link instead of click? I think this is a pretty sweet feature have.

confile commented 11 years ago

This would be interesting. Is there a way to solve this problem?

janesim commented 11 years ago

change 'click' to 'mouseenter':

$(document).on('mouseenter.dropdown', '[data-dropdown]', show);$(document).on('mouseenter.dropdown', '[data-dropdown]', show);

claviska commented 11 years ago

There are many usability issues with making the dropdown show only on hover. This highlights a few of them, and offers a conceptual CSS alternative if you truly require that functionality.

http://stackoverflow.com/questions/8878033/how-to-make-twitter-bootstrap-menu-dropdown-on-hover-rather-than-click

On Apr 24, 2013, at 6:38 PM, janesim notifications@github.com wrote:

change 'click' to 'mouseenter':

$(document).on('mouseenter.dropdown', '[data-dropdown]', show);$(document).on('mouseenter.dropdown', '[data-dropdown]', show);

— Reply to this email directly or view it on GitHub.