From aa3913cb06124be52ee77cd5a77e19a9d53a5a09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Fri, 5 Mar 2021 10:20:17 +0100 Subject: [PATCH] refactoring --- packages/vue-3/src/EditorContent.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/vue-3/src/EditorContent.ts b/packages/vue-3/src/EditorContent.ts index 807f8808..2a296684 100644 --- a/packages/vue-3/src/EditorContent.ts +++ b/packages/vue-3/src/EditorContent.ts @@ -57,8 +57,7 @@ export const EditorContent = defineComponent({ const editor = props.editor // destroy nodeviews before vue removes dom element - // @ts-ignore - if (editor.view?.docView) { + if (!editor.isDestroyed) { editor.view.setProps({ nodeViews: {}, })