fix(client): fix position calculation of nested context menu

This commit is contained in:
syuilo 2022-12-30 11:32:45 +09:00
parent dac4f68382
commit f227091826
1 changed files with 4 additions and 0 deletions

View File

@ -44,6 +44,10 @@ function onChildClosed(actioned?: boolean) {
} }
} }
watch(() => props.targetElement, () => {
setPosition();
});
onMounted(() => { onMounted(() => {
setPosition(); setPosition();
nextTick(() => { nextTick(() => {