From 57b9c77e28abf940fa882fe6a82c20d61e589f37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Wed, 14 Nov 2018 17:38:07 +0100 Subject: [PATCH] fix a bug in editor-content component --- packages/tiptap/src/Components/EditorContent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tiptap/src/Components/EditorContent.js b/packages/tiptap/src/Components/EditorContent.js index 527bebab..86842a6d 100644 --- a/packages/tiptap/src/Components/EditorContent.js +++ b/packages/tiptap/src/Components/EditorContent.js @@ -11,7 +11,7 @@ export default { editor: { immediate: true, handler(editor) { - if (editor.element) { + if (editor && editor.element) { this.$nextTick(() => { this.$el.append(editor.element.firstChild) editor.setParentComponent(this)