-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Arrow Keydown event triggers click event for all [role="menu] #16090
Comments
It fires click in an attempt to keep the code DRY, as opening the menu hangs off the |
Yeah - that's exactly how I'm working around it. I wanted to call it out in case there was a way to better scope to just bootstrap dropdowns. Thanks for the fast reply! |
oh, now i see what you mean (re scoping to just bootstrap). that's actually an interesting idea (though it would probably require a lot of extra work to do that same kind of scoping explicitly for all components). @fat ? |
The |
i think that would make sense (also in light of parallel discussions in #16179 about possibly removing some of the |
I am writing my own aria menu object and handling the document click event differently than the document arrow keydown event. I was surprised when dropdown.js actually triggered a click event when I used the down arrow.
See:
https://github.com/twbs/bootstrap/blob/master/js/dropdown.js#L158
https://github.com/twbs/bootstrap/blob/master/js/dropdown.js#L72
The text was updated successfully, but these errors were encountered: