Closed EtheriousNatsu closed 6 years ago
Currently vue-autosuggest cannot bind the v-model that you put on the <vue-autosuggest ..>
tag in this way, so you will get both the input event emit from vue-autosuggest in addition to the v-model event emitter in base-auto-suggest
through it's v-model. You can get around it by using v-validate.disable="rules"
and triggering the validation in fetchResults
. I've updated the codesandbox to do this if you want to look there for inspiration. Another idea is to tell v-validate when to emit, but it wasn't working for me if you are curious to try it https://baianat.github.io/vee-validate/guide/events.html#changing-events-per-field
Let me know if this works for you.
yes ,thank you, it works. I remove v-model , and disable vee-validator auto, then triggering the validation in fetchResults.
vue-autosuggest
version:1.7.1-2node
version:10.3.0npm
(oryarn
) version:6.1.0Relevant code or config
What you did: I input character
a
What happened: this localvalue is inputevent
Reproduction repository:
Problem description: I think maybe its v-model cause.
Suggested solution: