Skip to content

Commit

Permalink
fix: fix a bug when detecting changes within node views
Browse files Browse the repository at this point in the history
  • Loading branch information
philippkuehn committed Apr 9, 2021
1 parent 9915376 commit 708ac94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/NodeView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export class NodeView<Component, Editor extends CoreEditor = CoreEditor> impleme
}

const contentDOMHasChanged = !this.contentDOM.contains(mutation.target)
|| this.contentDOM === mutation.target
|| (this.contentDOM === mutation.target && mutation.type === 'attributes')

return contentDOMHasChanged
}
Expand Down

0 comments on commit 708ac94

Please sign in to comment.