From 8e0be0a238bcf18347313047331b783f643b5489 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Wed, 19 Jun 2024 16:45:24 +0200 Subject: [PATCH] fix(files): Don't react to clicks when renaming Signed-off-by: Louis Chemineau --- apps/files/src/components/FileEntryMixin.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/files/src/components/FileEntryMixin.ts b/apps/files/src/components/FileEntryMixin.ts index e6accb7861a..6a6b69b99fc 100644 --- a/apps/files/src/components/FileEntryMixin.ts +++ b/apps/files/src/components/FileEntryMixin.ts @@ -144,6 +144,10 @@ export default defineComponent({ this.actionsMenuStore.opened = opened ? this.uniqueId.toString() : null }, }, + + isRenaming() { + return this.renamingStore.renamingNode === this.source + }, }, watch: { @@ -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