aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/components/FileEntry/FileEntryActions.vue
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2025-01-10 12:31:07 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2025-01-10 11:44:31 +0000
commit11aeefaf04272fdfca07c7517ac2934f63f2cbd6 (patch)
tree9139241dab9452c452599d0495ee185797b24b4b /apps/files/src/components/FileEntry/FileEntryActions.vue
parentb2c74916162783bee841bec2227a46588ac31ecf (diff)
downloadnextcloud-server-11aeefaf04272fdfca07c7517ac2934f63f2cbd6.tar.gz
nextcloud-server-11aeefaf04272fdfca07c7517ac2934f63f2cbd6.zip
fix(files): close submenu on main actions state change
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/src/components/FileEntry/FileEntryActions.vue')
-rw-r--r--apps/files/src/components/FileEntry/FileEntryActions.vue7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files/src/components/FileEntry/FileEntryActions.vue b/apps/files/src/components/FileEntry/FileEntryActions.vue
index 0bbac99bf48..7d28b5b8324 100644
--- a/apps/files/src/components/FileEntry/FileEntryActions.vue
+++ b/apps/files/src/components/FileEntry/FileEntryActions.vue
@@ -244,6 +244,13 @@ export default defineComponent({
},
},
+ watch: {
+ // Close any submenu when the menu is closed
+ openedMenu() {
+ this.openedSubmenu = null
+ },
+ },
+
created() {
useHotKey('Escape', this.onKeyDown, {
stop: true,