pespantelis / vue-typeahead

:mag: Typeahead component for Vue.js
http://pespantelis.github.io/vue-typeahead
MIT License
517 stars 98 forks source link

Display selected #38

Closed thanosalexander closed 7 years ago

thanosalexander commented 7 years ago

Hi .. is there any way to display selected item after i select from list? also the only way i found to sync with my data (user_id) is to add this this.$emit('input', item.id) on onHit method.

Also one small issue on handling @keydown.enter event. when i click enter it submits the form.i tried add @keydown.enter.prevent or @keydown.enter.stop but no luck

mailnike commented 7 years ago

@thanosalexander how did you solve all issues?

marsPure commented 6 years ago

same issue, any solution?

vmitchell85 commented 6 years ago

See what I did here: https://github.com/pespantelis/vue-typeahead/issues/35#issuecomment-393605395