Skip to content

Commit

Permalink
fix: maybe move content dom on update, fix ueberdosis#1370
Browse files Browse the repository at this point in the history
  • Loading branch information
philippkuehn committed May 29, 2021
1 parent 14e83df commit 4ac968e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 4ac968e

Please sign in to comment.