-
Notifications
You must be signed in to change notification settings - Fork 76
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
onUpdate fires everywhere #138
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey there
Very useful package! I'm using it together with the Mapbox Geocoding API to fetch and display locations. One problem i have is that the
focus
event keeps triggering an API call even though a result has already been selected. So why not just keeping the previous results in a variable and show them in a list onfocus
but only listen to thechange
event to update that list?UPDATE: I just realized, that the
onUpdate
event triggers everywhere. You can click where ever you want on the document and it triggers an update. Can be easily reproduced by putting a console log in theonUpdate
method.The text was updated successfully, but these errors were encountered: