autofocus when add/clone button is clicked
This commit is contained in:
parent
37c0768125
commit
a8248bd829
|
@ -562,6 +562,7 @@ function createSectionsEditor({style, onTitleChanged}) {
|
||||||
const index = sections.indexOf(base);
|
const index = sections.indexOf(base);
|
||||||
sections.splice(index + 1, 0, section);
|
sections.splice(index + 1, 0, section);
|
||||||
container.insertBefore(section.el, base.el.nextSibling);
|
container.insertBefore(section.el, base.el.nextSibling);
|
||||||
|
section.cm.focus();
|
||||||
} else {
|
} else {
|
||||||
sections.push(section);
|
sections.push(section);
|
||||||
container.appendChild(section.el);
|
container.appendChild(section.el);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user