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

Do not apply the autocompleted text into the text field on keyboard navigation #4

Open
mvysny opened this issue Aug 31, 2020 · 0 comments

Comments

@mvysny
Copy link

mvysny commented Aug 31, 2020

Steps to reproduce:

  1. Open https://incubator.app.fi/autocomplete-demo/autocomplete
  2. Type in "ky"
  3. Press the arrow down to select "Kylie".

The current input shows "ky" while the autocomplete text field shows "Kylie". This is confusing, since the user thinks that the "Kylie" value is applied, however the autocomplete component fired no such event and reports its value server-side as "ky".

I suggest to change this behavior to set the text field to "Kylie" only after ENTER has been pressed while the "Kylie" option is highlighted in the dropdown; that should then immediately fire the onValueChange event as well.

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

No branches or pull requests

1 participant