diff --git a/packages/core/src/Editor.ts b/packages/core/src/Editor.ts index 124fb3b07..90aa9938d 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) }