Skip to content

Commit 3ff6a1c

Browse files
committed
Don't react to clicks when renaming
Signed-off-by: Louis Chemineau <[email protected]>
1 parent 42fa007 commit 3ff6a1c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

apps/files/src/components/FileEntryMixin.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ export default defineComponent({
144144
this.actionsMenuStore.opened = opened ? this.uniqueId.toString() : null
145145
},
146146
},
147+
148+
isRenaming() {
149+
return this.renamingStore.renamingNode === this.source
150+
},
147151
},
148152

149153
watch: {
@@ -208,6 +212,11 @@ export default defineComponent({
208212
},
209213

210214
execDefaultAction(event) {
215+
// Ignore click if we are renaming
216+
if (this.isRenaming) {
217+
return
218+
}
219+
211220
// Ignore right click.
212221
if (event.button > 1) {
213222
return

0 commit comments

Comments
 (0)