diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-20 08:59:54 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-20 08:59:54 +0900 |
| commit | b067d4dcd682177a73f614df3e52924b65749bac (patch) | |
| tree | 2c63234dce881d3aa1da0414af9ce0d2f90fb770 /packages | |
| parent | fix(frontend): モバイルレイアウト時にホームを押しても最... (diff) | |
| download | sharkey-b067d4dcd682177a73f614df3e52924b65749bac.tar.gz sharkey-b067d4dcd682177a73f614df3e52924b65749bac.tar.bz2 sharkey-b067d4dcd682177a73f614df3e52924b65749bac.zip | |
follow up of 7b323031b774745ee2146c89ead2a9ebe628d613
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/frontend/src/components/MkMenu.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkMenu.vue b/packages/frontend/src/components/MkMenu.vue index 5438dac3a8..e380d0bc37 100644 --- a/packages/frontend/src/components/MkMenu.vue +++ b/packages/frontend/src/components/MkMenu.vue @@ -179,7 +179,7 @@ SPDX-License-Identifier: AGPL-3.0-only </template> <script lang="ts"> -import { computed, defineAsyncComponent, inject, nextTick, onBeforeUnmount, onMounted, ref, useTemplateRef, unref, watch } from 'vue'; +import { computed, defineAsyncComponent, inject, nextTick, onBeforeUnmount, onMounted, ref, useTemplateRef, unref, watch, shallowRef } from 'vue'; import type { MenuItem, InnerMenuItem, MenuPending, MenuAction, MenuSwitch, MenuRadio, MenuRadioOption, MenuParent } from '@/types/menu.js'; import type { Keymap } from '@/utility/hotkey.js'; import MkSwitchButton from '@/components/MkSwitch.button.vue'; @@ -257,7 +257,7 @@ watch(() => props.items, () => { }); const childMenu = ref<MenuItem[] | null>(); -const childTarget = useTemplateRef('childTarget'); +const childTarget = shallowRef<HTMLElement>(); function closeChild() { childMenu.value = null; |