Skip to content

Commit

Permalink
feat: add selected-item-changed event to typeahead (close #517)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxsms committed Aug 24, 2021
1 parent b18b649 commit e8550a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/typeahead/Typeahead.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ export default {
value(value) {
this.setInputTextByValue(value)
},
activeIndex(index) {
this.$emit('selected-item-changed', index)
},
},
methods: {
setInputTextByValue(value) {
Expand Down

0 comments on commit e8550a3

Please sign in to comment.