check for children in ignoreMutation, fix #304

This commit is contained in:
Philipp Kühn 2019-05-13 12:53:54 +02:00
parent a49a6314d7
commit 0d2f364dcb

View File

@ -106,8 +106,11 @@ export default class ComponentView {
// prevent a full re-render of the vue component on update
// we'll handle prop updates in `update()`
ignoreMutation() {
return true
ignoreMutation(mutation) {
if (!this.contentDOM) {
return true
}
return !this.contentDOM.contains(mutation.target)
}
// disable (almost) all prosemirror event listener for node views