Skip to content

Commit

Permalink
fix(files): close submenu on main actions state change
Browse files Browse the repository at this point in the history
Signed-off-by: skjnldsv <[email protected]>
  • Loading branch information
skjnldsv committed Jan 10, 2025
1 parent 3b97190 commit fc5dcaa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/files/src/components/FileEntry/FileEntryActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fc5dcaa

Please sign in to comment.