Allow selection mutation events for leaf node views

This commit is contained in:
Billy Lam
2019-10-01 10:58:54 +13:00
parent 01493e825b
commit d84059ede4

View File

@@ -116,6 +116,10 @@ export default class ComponentView {
// prevent a full re-render of the vue component on update // prevent a full re-render of the vue component on update
// we'll handle prop updates in `update()` // we'll handle prop updates in `update()`
ignoreMutation(mutation) { ignoreMutation(mutation) {
if (mutation.type === "selection") {
return false;
}
if (!this.contentDOM) { if (!this.contentDOM) {
return true return true
} }