Skip to content

CodeBlockRenderHandoff.restoreFocus

CodeBlockRenderHandoff › restoreFocus

Type: () => Promise<boolean>

Puts the focus back on the element at the same position inside the new render, with the same text selection.

Call it once the processor has rendered the block. It waits for the element to be attached to a document.