fix field scroll

This commit is contained in:
Pete Matsyburka
2026-03-11 14:43:16 +02:00
parent f5ae8c60d3
commit 9c02ed66f5
@@ -154,7 +154,7 @@ export default {
const el = editor.view.dom.querySelector(`[data-area-uuid="${area.uuid}"]`)
if (el) {
editor.chain().focus().setNodeSelection(editor.view.posAtDOM(el, 0)).run()
editor.commands.setNodeSelection(editor.view.posAtDOM(el, 0))
el.scrollIntoView({ behavior: 'smooth', block: 'center' })
}