fix: maybe move content dom on update, fix #1370
This commit is contained in:
@@ -121,10 +121,10 @@ class ReactNodeView extends NodeView<React.FunctionComponent, Editor> {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
this.maybeMoveContentDOM()
|
|
||||||
this.node = node
|
this.node = node
|
||||||
this.decorations = decorations
|
this.decorations = decorations
|
||||||
this.renderer.updateProps({ node, decorations })
|
this.renderer.updateProps({ node, decorations })
|
||||||
|
this.maybeMoveContentDOM()
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user