From b19b6a9ee7e48f5129d23220203c1cb56ca3f579 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Tue, 24 Feb 2026 17:56:48 +0900 Subject: [PATCH] Update MkMenu.vue --- packages/frontend/src/components/MkMenu.vue | 26 +++++++++++---------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/packages/frontend/src/components/MkMenu.vue b/packages/frontend/src/components/MkMenu.vue index 7d1fc54b0f..f115fbb95a 100644 --- a/packages/frontend/src/components/MkMenu.vue +++ b/packages/frontend/src/components/MkMenu.vue @@ -217,18 +217,17 @@ SPDX-License-Identifier: AGPL-3.0-only > -
- -
+ @@ -313,6 +312,7 @@ watch(() => props.items, () => { }); const childMenu = ref(); +const childMenuKey = ref(0); const childTarget = shallowRef(); function closeChild() { @@ -369,6 +369,7 @@ async function showRadioOptions(item: MenuRadio, ev: MouseEvent | PointerEvent | } else { childTarget.value = (ev.currentTarget ?? ev.target) as HTMLElement; childMenu.value = children; + childMenuKey.value++; childShowingItem.value = item; } } @@ -399,6 +400,7 @@ async function showChildren(item: MenuParent, ev: MouseEvent | PointerEvent | Ke childTarget.value = (ev.currentTarget ?? ev.target) as HTMLElement; // これでもリアクティビティは保たれる childMenu.value = children; + childMenuKey.value++; childShowingItem.value = item; } }