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

Clear autocomplete input on blur when no option is selected #3207

Closed
FredrikMWold opened this issue Jan 5, 2024 · 2 comments
Closed

Clear autocomplete input on blur when no option is selected #3207

FredrikMWold opened this issue Jan 5, 2024 · 2 comments
Assignees

Comments

@FredrikMWold
Copy link
Contributor

FredrikMWold commented Jan 5, 2024

Is your feature request related to a problem? Please describe.

We have had issues where users don't click an option when using the Autocomplete component. The way it is now there is not a distinct enough indicator that tells the user they have not selected a value just typed it in. As an example we have a form were a lot of the options are short ["A1", "A2", "B3"] in this case users sometime just type "A1" and move on to the next field. Think they have input the correct value.

Describe the solution you'd like

When a user types into the Autocomplete and does not pick an options the input field should clear on blur.

Describe alternatives you've considered

Adding a visual indicator that the users has typed something, but not picked anything. That would still require a change to Autocomplete or creating custom styling in every project that overrides the default styling.

@FredrikMWold
Copy link
Contributor Author

#3208

@oddvernes
Copy link
Collaborator

Duplicate of #3070
This issue was discussed on slack last year and we concluded to clear input on blur and add a "no options" item in the dropdown when there are no filter results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants