From 232651774ec469b0da8790b97cb0438b497d355f Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Fri, 6 Dec 2024 16:09:57 +0100 Subject: fix(files): cancel renaming on enter if no file name changes Signed-off-by: skjnldsv --- apps/files/src/components/FileEntry/FileEntryName.vue | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/files') diff --git a/apps/files/src/components/FileEntry/FileEntryName.vue b/apps/files/src/components/FileEntry/FileEntryName.vue index 1eff841738b..2a727b55c29 100644 --- a/apps/files/src/components/FileEntry/FileEntryName.vue +++ b/apps/files/src/components/FileEntry/FileEntryName.vue @@ -241,6 +241,10 @@ export default defineComponent({ } const oldName = this.source.basename + if (newName === oldName) { + this.stopRenaming() + return + } try { const status = await this.renamingStore.rename() -- cgit v1.2.3