Skip to content

Commit 55893e9

Browse files
committed
fix dropdowns
1 parent 3d804e2 commit 55893e9

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

src/shared/components/ContextMenu.vue

+3-13
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
<slot />
44
<b-dropdown
55
v-if="$slots['context-menu']"
6-
ref="dropdown" toggle-class="p-0 border-0" no-caret lazy
6+
ref="dropdown"
7+
v-model="visible"
8+
toggle-class="p-0 border-0" no-caret lazy
79
:style="{position: 'absolute', left: `${left}px`,top: `${top}px`}"
8-
@hide="hide"
910
>
1011
<slot name="context-menu" />
1112
</b-dropdown>
@@ -22,18 +23,7 @@
2223
visible: false,
2324
}
2425
},
25-
watch: {
26-
visible: {
27-
handler(value: boolean) {
28-
(this.$refs.dropdown as any).visible = value
29-
}
30-
}
31-
},
3226
methods: {
33-
hide(event: any) {
34-
event.preventDefault()
35-
this.visible = false
36-
},
3727
showContextMenu(event: any) {
3828
if (this.$slots['context-menu']) {
3929
event.preventDefault()

src/shared/components/OverflowMenu.vue

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<b-dropdown
33
right
44
no-caret
5-
boundary="window"
65
:variant="variant"
76
:toggle-class="variant === 'link' ? 'p-0' : 'px-1'"
87
:disabled="disabled"

0 commit comments

Comments
 (0)