Skip to content

Commit

Permalink
add focus event
Browse files Browse the repository at this point in the history
  • Loading branch information
paliari committed Jan 27, 2018
1 parent 2044183 commit 8e37a4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ Events
| **item-clicked** | *item*: Item clicked | Triggered after a click on a suggestion |
| **item-selected** | *item*: Item selected | Like @input, but only when has value |
| **blur** | *text*: Text of search input | Triggered on blur in the search input |
| **focus** | *text*: Text of search input | Triggered on focus in the search input |

What about appearence?
----------------------
Expand Down
1 change: 1 addition & 0 deletions src/Autocomplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export default {
},
focus () {
this.$emit('focus', this.searchText)
this.showList = true
},
Expand Down

0 comments on commit 8e37a4c

Please sign in to comment.