Automatically open option list in a <select>
(HTMLSelectElement
)
#7957
Labels
addition/proposal
New features or enhancements
needs implementer interest
Moving the issue forward requires implementers to express interest
topic: forms
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
134 upvotes, 20 stars, top answer has 128 upvotes
143 upvotes, 9 stars
Related Discussions
The text was updated successfully, but these errors were encountered: