Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't toggle dropdown on touch devices unless using bootstrap's data-toggle="dropdown" #150

Open
pavsid opened this issue May 4, 2016 · 1 comment

Comments

@pavsid
Copy link

pavsid commented May 4, 2016

Thanks for writing this plugin, however I wonder if you have any input on the following:

I understand this plugin is designed to be used alongside Bootstrap's data-toggle="dropdown" but having a hover event open the dropdown and then a click which closes it in my opinion is a bad user experience as most users will go to click the navigation item (which will actually close it again).

So, the solution to this would be not to use Bootstrap's data-toggle="dropdown" and just rely on the hover events supported by your plugin.

However, that in turn means that the dropdown won't open on touch devices (as a click event is required to be present).

Any suggestions? Thanks again.

@kd7uiy
Copy link

kd7uiy commented Mar 22, 2018

I haven't figured out a solution yet, but it seems to me the only way to do it is to modify the code of this module somehow, or else have some kind of javascript function determine if the data-toggle should work based on the presense of the "hover" ability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants