Skip to content

Commit

Permalink
fix(MdAutocomplete): fix option selecting (vuematerial#1765)
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuell1 authored Jun 7, 2018
1 parent 341a06c commit 24e63ba
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/components/MdAutocomplete/MdAutocomplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -202,20 +202,15 @@
}
this.showMenu = true
this.$nextTick().then(() => {
this.$nextTick(() => {
this.triggerPopover = true
this.$emit('md-opened')
})
},
hideOptions () {
const clearPopover = () => {
this.$nextTick(() => {
this.triggerPopover = false
this.$emit('md-closed')
}
this.$nextTick().then(() => {
this.showMenu = false
this.$nextTick().then(clearPopover)
})
},
selectItem (item, $event) {
Expand Down

0 comments on commit 24e63ba

Please sign in to comment.