-
Notifications
You must be signed in to change notification settings - Fork 97
Update method firing when input field blurs #50
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
Comments
@bencarter78 Scratched my head on this one for some time. Here's what worked:
and in the template:
In my case I wanted the query to stay in the input on blur, even if no results matched. Clearing out the items via It would be nice to have a "selecting item populates the input box" as a core feature as this is a pretty common use case. Would be happy to submit a pull req, but my solution above is a bit hacky and I'm stumped why manipulating the items array isn't working. I should also mention that this does not fix the update event from firing on blur - this could be the expected Vue behavior, but I'm not certain. |
Hi there
First off, thanks for making a great package! 👍
I'm doing a Vue 1 -> Vue 2 upgrade and I'm coming across an issue where by when I search for a resource, I can select it from the dropdown that appears, it populates the input field but when I exit the field it makes another request and the dropdown appears again.
It seems that it the update method is being fired when I leave the input field. Any ideas what I could be doing wrong?
The text was updated successfully, but these errors were encountered: