mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-19 06:43:02 +08:00
check for children in ignoreMutation, fix #304
This commit is contained in:
parent
a49a6314d7
commit
0d2f364dcb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user