Skip to content

Commit

Permalink
fix(files): Don't react to clicks when renaming
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed Jun 19, 2024
1 parent 42fa007 commit 9b17c1f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/files/src/components/FileEntryMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ export default defineComponent({
this.actionsMenuStore.opened = opened ? this.uniqueId.toString() : null
},
},

isRenaming() {
return this.renamingStore.renamingNode === this.source
},
},

watch: {
Expand Down Expand Up @@ -208,6 +212,11 @@ export default defineComponent({
},

execDefaultAction(event) {
// Ignore click if we are renaming
if (this.isRenaming) {
return
}

// Ignore right click.
if (event.button > 1) {
return
Expand Down

0 comments on commit 9b17c1f

Please sign in to comment.