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

mouseenter targets vs focusin targets #178

Open
mjau-mjau opened this issue Feb 24, 2019 · 2 comments
Open

mouseenter targets vs focusin targets #178

mjau-mjau opened this issue Feb 24, 2019 · 2 comments

Comments

@mjau-mjau
Copy link

Is there any reason why the mouseenter event is applied to targets option, while focusin event is hardcoded to 'li, or am I missing some vital functionality?

$menu.on('mouseenter.superfish', targets, over)

vs

$menu.on('focusin.superfish', 'li', over)
@joeldbirch
Copy link
Owner

joeldbirch commented Feb 24, 2019 via email

@mjau-mjau
Copy link
Author

Hi Joel, thanks for the fast reply! Messing around with some old code here myself, and stumbled upon an issue where focusin was being triggered for excluded items, although I'm not 100% sure it's "wrong" ... In my case, it simply crashes with custom behavior for excluded items that trigger on click (which also triggers focusin).

Initial tests showed nothing wrong in replacing 'li' with targets, but I probably won't make a pull request unless I fully understand the logic and test from various input devices.

Cheers!

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