From 71e6fbed6ef57ec57570c339ba3dd5c19b465034 Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Fri, 10 Jan 2025 12:31:07 +0100 Subject: [PATCH] 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 a3e469f144b..bb7474f57b0 100644 --- a/apps/files/src/components/FileEntry/FileEntryActions.vue +++ b/apps/files/src/components/FileEntry/FileEntryActions.vue @@ -241,6 +241,13 @@ export default defineComponent({ }, }, + watch: { + // Close any submenu when the menu is closed + openedMenu() { + this.openedSubmenu = null + }, + }, + methods: { actionDisplayName(action: FileAction) { try {