diff --git a/packages/frontend/src/components/MkMenu.vue b/packages/frontend/src/components/MkMenu.vue index 7338fd6eda..093f1a43e0 100644 --- a/packages/frontend/src/components/MkMenu.vue +++ b/packages/frontend/src/components/MkMenu.vue @@ -30,7 +30,16 @@ SPDX-License-Identifier: AGPL-3.0-only - + @@ -38,20 +47,48 @@ SPDX-License-Identifier: AGPL-3.0-only - + {{ item.text }} - + - + @@ -59,14 +96,31 @@ SPDX-License-Identifier: AGPL-3.0-only - + {{ item.text }} - + @@ -74,14 +128,29 @@ SPDX-License-Identifier: AGPL-3.0-only {{ item.text }} - + {{ item.text }} - + @@ -202,7 +271,7 @@ function onItemMouseLeave() { if (childCloseTimer) window.clearTimeout(childCloseTimer); } -async function showRadioOptions(item: MenuRadio, ev: MouseEvent) { +async function showRadioOptions(item: MenuRadio, ev: Event) { const children: MenuItem[] = Object.keys(item.options).map(key => { const value = item.options[key]; return { @@ -227,7 +296,7 @@ async function showRadioOptions(item: MenuRadio, ev: MouseEvent) { } } -async function showChildren(item: MenuParent, ev: MouseEvent) { +async function showChildren(item: MenuParent, ev: Event) { const children: MenuItem[] = await (async () => { if (childrenCache.has(item)) { return childrenCache.get(item)!;