diff --git a/packages/app/src/pages/layout.tsx b/packages/app/src/pages/layout.tsx index dc716c03058..6f8d0517f93 100644 --- a/packages/app/src/pages/layout.tsx +++ b/packages/app/src/pages/layout.tsx @@ -125,7 +125,6 @@ export default function Layout(props: ParentProps) { const openEditor = (id: string, value: string) => { if (!id) return setEditor({ active: id, value }) - queueMicrotask(() => editorRef.current?.focus()) } const closeEditor = () => setEditor({ active: "", value: "" }) @@ -194,6 +193,7 @@ export default function Layout(props: ParentProps) { { editorRef.current = el + requestAnimationFrame(() => el.focus()) }} value={editorValue()} class={props.class}