fix: fix a bug when detecting changes within node views

This commit is contained in:
Philipp Kühn
2021-04-09 09:51:07 +02:00
parent 99153760d6
commit 708ac94ceb

View File

@@ -175,7 +175,7 @@ export class NodeView<Component, Editor extends CoreEditor = CoreEditor> impleme
} }
const contentDOMHasChanged = !this.contentDOM.contains(mutation.target) const contentDOMHasChanged = !this.contentDOM.contains(mutation.target)
|| this.contentDOM === mutation.target || (this.contentDOM === mutation.target && mutation.type === 'attributes')
return contentDOMHasChanged return contentDOMHasChanged
} }