Skip to content

Commit

Permalink
fix: maybe move content dom on update, fix #1370
Browse files Browse the repository at this point in the history
  • Loading branch information
philippkuehn committed May 29, 2021
1 parent 72805d5 commit 78f75c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/ReactNodeViewRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 78f75c3

Please sign in to comment.