diff --git a/edit/sections-editor.js b/edit/sections-editor.js index c6ef5c1c..949f7f29 100644 --- a/edit/sections-editor.js +++ b/edit/sections-editor.js @@ -436,7 +436,7 @@ function createSectionsEditor({style, onTitleChanged}) { if (!originalSections.length) { setGlobalProgress(); if (focusOn !== false) { - sections[focusOn].cm.focus(); + setTimeout(() => sections[focusOn].cm.focus()); } container.classList.remove('hidden'); for (const section of sections) {