vue-strap
vue-strap copied to clipboard
Typehead on-blur
Hello! How can i handle blur event in typeahead plugin? For example when I type something, dont select suggestion values and switch focus to another form component, i still want to save the value into vuex store.
I don't know about vuex store because I haven't learned how that works yet, but you can set a v-model
property on the typeahead which will have the value typed in the field even when not selected from the suggestions.
But I would like to be able to use the blur event myself for other reasons.
Did you find a way to do this?
Yes, thanks to @etlweather answer. I set a v-model
property and link it with computed set/get (doc) method.