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

When selecting an item from the list the input function is called again wasting an api call #130

Open
ruralcoder opened this issue Aug 31, 2021 · 1 comment

Comments

@ruralcoder
Copy link

The REST API gets called incorrectly twice.

First time, correctly, when you enter initial characters
Second time when using the mouse to select an item from the list.

This causes unnecessary calls to the server wasting resources.

@vnukhr
Copy link

vnukhr commented Oct 21, 2021

I've run into this issue and couldn't have let it go. I've worked around it in my @input function, pseudo code:

IF NOT item is selected OR substring of query does not contain item label
doUpdate(query)

Hope it helps someone until this is fixed.

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

2 participants