From 19adfe3a6c2433ecfc6883406c3fda19a02c6e70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Tue, 31 Mar 2020 13:07:57 +0200 Subject: [PATCH] fix --- packages/core/src/Editor.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/core/src/Editor.ts b/packages/core/src/Editor.ts index 124fb3b0..90aa9938 100644 --- a/packages/core/src/Editor.ts +++ b/packages/core/src/Editor.ts @@ -228,11 +228,10 @@ export class Editor extends EventEmitter { } public destroy() { - if (!this.view) { - return + if (this.view) { + this.view.destroy() } - this.view.destroy() this.removeAllListeners() removeElement(this.css) }