Skip to content

Commit 24e63ba

Browse files
authored
fix(MdAutocomplete): fix option selecting (#1765)
1 parent 341a06c commit 24e63ba

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/components/MdAutocomplete/MdAutocomplete.vue

+2-7
Original file line numberDiff line numberDiff line change
@@ -202,20 +202,15 @@
202202
}
203203
204204
this.showMenu = true
205-
this.$nextTick().then(() => {
205+
this.$nextTick(() => {
206206
this.triggerPopover = true
207207
this.$emit('md-opened')
208208
})
209209
},
210210
hideOptions () {
211-
const clearPopover = () => {
211+
this.$nextTick(() => {
212212
this.triggerPopover = false
213213
this.$emit('md-closed')
214-
}
215-
216-
this.$nextTick().then(() => {
217-
this.showMenu = false
218-
this.$nextTick().then(clearPopover)
219214
})
220215
},
221216
selectItem (item, $event) {

0 commit comments

Comments
 (0)