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; } }