You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When selecting an item a new getSources is triggered (new sources are fetched) and is resolved before calling onSelect(). When working with slow API it prevent the dropdown to be closed while the data is fetched.
Fill the field with a street name "128 Aven" (it's in french)
Wait till the suggestions appears
Click on a suggestion and see how it load before calling onSelect
Expected behavior
I expect the autocomplete to close immediately when selecting a value.
I expect onSelect to be called before the new getSources call (it would allow me to prevent loading new async data).
Environment
OS: All
Browser: All
Autocomplete version: 1.10.0
The text was updated successfully, but these errors were encountered:
Grafikart
changed the title
onSelect() called after getSources()
onSelect() called after getSources(), causing a closing delay of the dropdown
Jul 16, 2023
Description
When selecting an item a new getSources is triggered (new sources are fetched) and is resolved before calling onSelect(). When working with slow API it prevent the dropdown to be closed while the data is fetched.
Reproduction
Preview of the problem
Steps
Expected behavior
I expect the autocomplete to close immediately when selecting a value.
I expect onSelect to be called before the new getSources call (it would allow me to prevent loading new async data).
Environment
The text was updated successfully, but these errors were encountered: