fix: maybe move content dom on update, fix #1370

This commit is contained in:
Philipp Kühn
2021-05-29 20:12:21 +02:00
parent 72805d53e6
commit 78f75c3e0e

View File

@@ -121,10 +121,10 @@ class ReactNodeView extends NodeView<React.FunctionComponent, Editor> {
return true
}
this.maybeMoveContentDOM()
this.node = node
this.decorations = decorations
this.renderer.updateProps({ node, decorations })
this.maybeMoveContentDOM()
return true
}