fix: fix a bug when detecting changes within node views
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user