diff --git a/src/lib/components/layout/Sidebar/RecursiveFolder.svelte b/src/lib/components/layout/Sidebar/RecursiveFolder.svelte index 461b82202..334eb80bf 100644 --- a/src/lib/components/layout/Sidebar/RecursiveFolder.svelte +++ b/src/lib/components/layout/Sidebar/RecursiveFolder.svelte @@ -309,10 +309,13 @@ await tick(); - // focus on the input + // focus on the input and select all text setTimeout(() => { const input = document.getElementById(`folder-${folderId}-input`); - input.focus(); + if (input) { + input.focus(); + input.select(); + } }, 100); };