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

onSearchComplete triggers after onSelect when only one match exists #852

Open
diegosps opened this issue Jan 6, 2024 · 0 comments
Open

Comments

@diegosps
Copy link

diegosps commented Jan 6, 2024

When the behavior described in #846 happens (only one suggestion with exact match), the order of the events are swapped.

For example, if I have logic the does some cleanup at search complete and do some processing at select, whenever I click in an already filled input, I always end up with a clear state because onSearchComplete triggers after the onSelect event.

I can do some checks to avoid the cleanup.

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