From 841cf96defb764a37c4ace1ba60ab69d35597cf4 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 6ce90c0e28c..94d7610bc07 100644 --- a/apps/files/src/components/FileEntryMixin.ts +++ b/apps/files/src/components/FileEntryMixin.ts @@ -161,6 +161,10 @@ export default defineComponent({ this.actionsMenuStore.opened = opened ? this.uniqueId.toString() : null }, }, + + isRenaming() { + return this.renamingStore.renamingNode === this.source + }, }, watch: { @@ -225,6 +229,11 @@ export default defineComponent({ }, execDefaultAction(event) { + // Ignore click if we are renaming + if (this.isRenaming) { + return + } + // Ignore right click. if (event.button > 1) { return