🌐 AI搜索 & 代理 主页
Skip to content

Commit 799fa89

Browse files
authored
Try delaying the show handler
1 parent c69ae1a commit 799fa89

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/mixins/dropdown.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ export default {
136136
cancelable: true,
137137
vueTarget: this,
138138
target: this.$refs.menu,
139-
relatedTarget: null
139+
relatedTarget: null,
140+
componentId: this.safeId ? this.safeId() : this.id || null
140141
})
141142
this.emitEvent(bvEvt)
142143
if (bvEvt.defaultPrevented) {
@@ -334,7 +335,11 @@ export default {
334335
if (this.visible) {
335336
this.hide(true)
336337
} else {
337-
this.show()
338+
// Allow time for any other dropdown to close if
339+
// focus moves from dropdown to dropdown
340+
this.$nextTick(() => {
341+
this.show()
342+
})
338343
}
339344
},
340345
// Called only in split button mode, for the split button

0 commit comments

Comments
 (0)