vue-strap icon indicating copy to clipboard operation
vue-strap copied to clipboard

Typehead on-blur

Open alexivenkov opened this issue 8 years ago • 4 comments

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.

alexivenkov avatar Feb 21 '17 09:02 alexivenkov

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.

etlweather avatar Mar 08 '17 14:03 etlweather

But I would like to be able to use the blur event myself for other reasons.

etlweather avatar Mar 08 '17 14:03 etlweather

Did you find a way to do this?

ADRDev avatar Mar 31 '17 15:03 ADRDev

Yes, thanks to @etlweather answer. I set a v-model property and link it with computed set/get (doc) method.

alexivenkov avatar Apr 03 '17 11:04 alexivenkov