-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
How to spec user interaction for select #10762
Comments
I think it's important context to state why this is important: the popup is not script-observable without |
At whatnot we discussed this, and it sounded helpful to start by providing a list of situations where preventDefault would change the behavior. There was also a discussion about reusing the popovertarget activation behavior to open the popover picker. |
FWIW, when I played with this yesterday it seems that pressing the down arrow on a closed |
Sure, the focus is in that case on select. In the new case the focus is on option elements. |
Perhaps we can make something like this paragraph that's already in the spec? https://html.spec.whatwg.org/multipage/form-elements.html#concept-select-pick How does this sound for opening the picker?
|
One thing to define is how click works on options - current Canary dispatches click to the common ancestor of option and whatever happens to underneath the popup. I would expect click to be dispatched to the option element itself. So, activation behavior, not something else. I think the spec pr even expects this, so it might be an implementation issue, but are there tests for this? |
I think the expected behavior from user's point of view when dealing with Home/End/PgDn/PgUp is that those would change focus between option elements, similarly to arrow keys. Maybe some of that could be left up to the implementation, though when testing Canary, which doesn't deal with those, select does feel a bit broken. Do we need to consider anything special for mobile? Currently select popup is a native popup there, I think in all the browsers. |
What is the issue with the HTML Standard?
As part of customizable select, there is desire to add something to the spec that explains how the user can interact with the select element. There is already some paragraphs related to choosing options, which basically just says that input and change events should be fired after the user chooses an option.
Potential actions:
Potential requirements:
key
property of a relevant KeyboardEvent should be?appearance:base
<select>
not to require user activation beforeshowPicker()
? #10604Potential solutions:
The text was updated successfully, but these errors were encountered: