From da77f50a970d3e5ebc9b3dc4764d04219fcd08c4 Mon Sep 17 00:00:00 2001 From: muerwre Date: Tue, 5 Mar 2019 17:26:23 +0700 Subject: [PATCH] debug is_empty --- src/modules/Editor.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/Editor.ts b/src/modules/Editor.ts index de0be4a..ccde86c 100644 --- a/src/modules/Editor.ts +++ b/src/modules/Editor.ts @@ -200,6 +200,8 @@ export class Editor { }; triggerOnChange = (): void => { + console.log('trigger on change', this.isEmpty, this.getIsEmpty()); + if (this.isEmpty !== this.getIsEmpty()) this.setIsEmpty(this.isEmpty); if (this.getEditing() && !this.getChanged()) this.setChanged(true); };