Skip to content

Commit 822b5ef

Browse files
committed
fix(files): Don't react to clicks when renaming
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 parent 859ff7b commit 822b5ef

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
@@ -161,6 +161,10 @@ export default defineComponent({
161161
this.actionsMenuStore.opened = opened ? this.uniqueId.toString() : null
162162
},
163163
},
164+
165+
isRenaming() {
166+
return this.renamingStore.renamingNode === this.source
167+
},
164168
},
165169

166170
watch: {
@@ -225,6 +229,11 @@ export default defineComponent({
225229
},
226230

227231
execDefaultAction(event) {
232+
// Ignore click if we are renaming
233+
if (this.isRenaming) {
234+
return
235+
}
236+
228237
// Ignore right click.
229238
if (event.button > 1) {
230239
return

0 commit comments

Comments
 (0)