Skip to content

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

@ashmind

Description

@ashmind

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions