summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkMenu.child.vue
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-12-30 11:32:45 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-12-30 11:32:45 +0900
commitf227091826482a7ed1231d377d6cd5122d74bdf3 (patch)
tree1b4f6c12d66e93015387339edf893223c8345632 /packages/frontend/src/components/MkMenu.child.vue
parentfix of 912791b3ab (diff)
downloadsharkey-f227091826482a7ed1231d377d6cd5122d74bdf3.tar.gz
sharkey-f227091826482a7ed1231d377d6cd5122d74bdf3.tar.bz2
sharkey-f227091826482a7ed1231d377d6cd5122d74bdf3.zip
fix(client): fix position calculation of nested context menu
Diffstat (limited to 'packages/frontend/src/components/MkMenu.child.vue')
-rw-r--r--packages/frontend/src/components/MkMenu.child.vue4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/frontend/src/components/MkMenu.child.vue b/packages/frontend/src/components/MkMenu.child.vue
index 3ada4afbdc..c2705d394a 100644
--- a/packages/frontend/src/components/MkMenu.child.vue
+++ b/packages/frontend/src/components/MkMenu.child.vue
@@ -44,6 +44,10 @@ function onChildClosed(actioned?: boolean) {
}
}
+watch(() => props.targetElement, () => {
+ setPosition();
+});
+
onMounted(() => {
setPosition();
nextTick(() => {