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

There should be DatalistControl module #17373

Open
foysalremon opened this issue Sep 8, 2019 · 4 comments
Open

There should be DatalistControl module #17373

foysalremon opened this issue Sep 8, 2019 · 4 comments
Labels
[Feature] UI Components Impacts or related to the UI component system [Package] Components /packages/components [Type] Enhancement A suggestion for improvement.

Comments

@foysalremon
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Sometimes on SelectControl there are a lot of options. User have to scroll a lot to find the option to select. And it's also difficult to find the option. Ex: Selecting a country from all country list.

There should be something like select option with search. So that user can search to shortlist the options to select from.

Describe the solution you'd like

  • We can use a component for datalist which is a HTML5 element supported by all major browser.
  • This component can be named DatalistControl

Describe alternatives you've considered
Another alternative can be using TextControl and a group of RadioControl together and bind them. But this may not be a optimal solution.

@swissspidy swissspidy added [Package] Components /packages/components [Feature] UI Components Impacts or related to the UI component system labels Sep 10, 2019
@swissspidy
Copy link
Member

Is there any place in Gutenberg that would benefit from such a component? We usually only include components that are actually used by the editor itself. Everything else one would need to implement themselves.

@simonhammes
Copy link
Contributor

Isn't this the exact use case for the already implemented (although atm not working) autocomplete component?

@foysalremon
Copy link
Contributor Author

@swissspidy This component will benefit on inspector control settings for selecting easily from a lot of options on a select field.
@simonhammes I think this and autocomplete are for 2 different purpose.

@jordesign jordesign added the [Type] Enhancement A suggestion for improvement. label Aug 4, 2023
@csobrien90
Copy link

csobrien90 commented Jan 11, 2024

I would absolutely use a <DatalistControl /> component and am happy to work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] UI Components Impacts or related to the UI component system [Package] Components /packages/components [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

5 participants