From d84059ede45b6a4898e52b14bba2432b4b2471cb Mon Sep 17 00:00:00 2001 From: Billy Lam Date: Tue, 1 Oct 2019 10:58:54 +1300 Subject: [PATCH] Allow selection mutation events for leaf node views --- packages/tiptap/src/Utils/ComponentView.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/tiptap/src/Utils/ComponentView.js b/packages/tiptap/src/Utils/ComponentView.js index 64c62009..675cd423 100644 --- a/packages/tiptap/src/Utils/ComponentView.js +++ b/packages/tiptap/src/Utils/ComponentView.js @@ -116,6 +116,10 @@ export default class ComponentView { // prevent a full re-render of the vue component on update // we'll handle prop updates in `update()` ignoreMutation(mutation) { + if (mutation.type === "selection") { + return false; + } + if (!this.contentDOM) { return true }