From a2d6ad801486a3bab22db2a0e0d51aacd953344c Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Fri, 10 Jan 2025 12:31:07 +0100 Subject: fix(files): close submenu on main actions state change Signed-off-by: skjnldsv --- apps/files/src/components/FileEntry/FileEntryActions.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/files/src/components/FileEntry/FileEntryActions.vue b/apps/files/src/components/FileEntry/FileEntryActions.vue index a536546f847..54c40ecfe84 100644 --- a/apps/files/src/components/FileEntry/FileEntryActions.vue +++ b/apps/files/src/components/FileEntry/FileEntryActions.vue @@ -257,6 +257,13 @@ export default defineComponent({ }, }, + watch: { + // Close any submenu when the menu is closed + openedMenu() { + this.openedSubmenu = null + }, + }, + methods: { actionDisplayName(action: FileAction) { try { -- cgit v1.2.3