-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
AutocompleteInput suggestions list is displayed after request even when user pick an option or leave the input #2404
Comments
I can't reproduce the issue on the simple example. Can you provide a CodeSandbox showing the issue? |
Maybe duplicated of : #2428 |
Bump, can you please provide a way to reproduce the issue? |
Here : https://codesandbox.io/s/lrro0q4wnm Go to the custom page, then write something (like |
Looks like a duplicated of #2428 indeed. Setting |
quick-and-dirty fix (instead of creating a custom AutocompleteInput component) : import Autosuggest from 'react-autosuggest';
Autosuggest.defaultProps.focusInputOnSuggestionClick = false; |
This works on my form fields but not within my arrayInput fields. On edit, it breaks the onChange completely. Seems a viable temp fix if you aren't using arrayInput, however. |
Closed as duplicate of #2428, which I just reopened. |
What you were expecting:
After autocompleteInput blur or after user pick an option the list of suggestions should not appear.
It should be displayed only when user change textinput manually
What happened instead:
After autocompleteInput blur or after user pick an option the list of suggestions appears.
it looks like after new option is picked there is send a new request to the backend for a list of suggestions and after this request suggestions list is displayed to the user no meter if user exit the input or just picked one of the suggestions

Steps to reproduce:
I am using api-platform/admin with HydraClient
Related code:
Environment
The text was updated successfully, but these errors were encountered: