UBER-1217 Register editor update event after initialization (#4699)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2024-02-19 17:17:38 +07:00 committed by GitHub
parent 94ddefa6de
commit af315fd25a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -82,9 +82,9 @@ class SvelteNodeView extends NodeView<SvelteNodeViewComponent, Editor, SvelteNod
}
})
this.editor.on('update', this.handleEditorUpdate.bind(this))
this.renderer = new SvelteRenderer(this.component, { element: target, props, context })
this.editor.on('update', this.handleEditorUpdate.bind(this))
}
override get dom (): HTMLElement {