From 8b1ae1d331d96bdfac3a51f09a2bcbba3b876358 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Wed, 30 Sep 2026 17:10:48 +0200 Subject: [PATCH] fix: renaming a folder with Enter saves it twice (#31584) Renaming a folder in the sidebar and pressing Enter sent the rename to the server twice and showed "Folder updated successfully" twice, because Enter saved the name and closing the text field saved it again. Enter now just closes the text field, which saves the new name once and shows one confirmation. Fixes #31582 --- src/lib/components/layout/Sidebar/RecursiveFolder.svelte | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/components/layout/Sidebar/RecursiveFolder.svelte b/src/lib/components/layout/Sidebar/RecursiveFolder.svelte index 79c7698663..e8bdf7e894 100644 --- a/src/lib/components/layout/Sidebar/RecursiveFolder.svelte +++ b/src/lib/components/layout/Sidebar/RecursiveFolder.svelte @@ -835,8 +835,7 @@ }} on:keydown={(e) => { if (e.key === 'Enter') { - updateHandler({ name }); - edit = false; + e.currentTarget.blur(); } }} class="w-full h-full bg-transparent outline-hidden"