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

Automatically open option list in a <select> (HTMLSelectElement) #7957

Closed
ashmind opened this issue May 25, 2022 · 2 comments · Fixed by #9754
Closed

Automatically open option list in a <select> (HTMLSelectElement) #7957

ashmind opened this issue May 25, 2022 · 2 comments · Fixed by #9754
Labels
addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest topic: forms

Comments

@ashmind
Copy link

ashmind commented May 25, 2022

Problem

I am working on examples for some UIs that are using <select> (using Storybook).

At least a few examples are intended to demonstrate how the <select> options are grouped and ordered. Those examples would benefit from a <select> being open straight away when user opens the example (since the point is to demonstrate the options).

However it seems there is no way to open a standard HTML <select> programmatically. Of course I can use a non-standard select, and that seems to be the main workaround the community is using, but I think longer-term default select should provide something.

Summary / TLDR

It would be good to have some way to open HTML <select> programmatically (either JS-only or HTML/JS).

Community Interest

Related Discussions

@annevk annevk added addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest topic: forms labels May 25, 2022
@annevk
Copy link
Member

annevk commented May 25, 2022

It seems that "Future work" of #7319 has arrived. 😊

cc @whatwg/forms

@lukewarlow
Copy link
Member

Is there anything major blocking this or would I be able to file a spec PR that adds this? OpenUI have discussed and agreed to add this function for the new <selectlist> proposal so it feels like a natural next step to add it to <select> itself?

lukewarlow added a commit to lukewarlow/html that referenced this issue Sep 19, 2023
annevk pushed a commit that referenced this issue Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest topic: forms
Development

Successfully merging a pull request may close this issue.

3 participants