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

Firing click events for <select> and <option> elements isn't clearly defined #7907

Open
danielhjacobs opened this issue May 9, 2022 · 0 comments

Comments

@danielhjacobs
Copy link

danielhjacobs commented May 9, 2022

Similar, but not the same as #1092. See also https://bugzilla.mozilla.org/show_bug.cgi?id=1767062, https://bugs.webkit.org/show_bug.cgi?id=239964, https://bugs.webkit.org/show_bug.cgi?id=240135, and https://bugs.chromium.org/p/chromium/issues/detail?id=1323015.

The first question is, should select elements fire click events only when an option is selected, when an option is selected and when the select option menu is opened, only when the select option menu is opened, or never? Additionally, whichever decision is reached, I imagine for accessibility reasons the event should be fired when these events are triggered by the keyboard, but that should also probably be clarified.

The second question is, should option elements fire click events when the option is selected, either with a mouse or with the keyboard, or should they not fire click events?

As you can see by the listed issues above, cross-browser consistency for this does not exist.

This issue was opened at the request of the Firefox devs in the first listed issue.

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

No branches or pull requests

2 participants