debug is_empty

This commit is contained in:
muerwre 2019-03-05 17:26:23 +07:00
parent 21e9fa1d02
commit da77f50a97

View file

@ -200,6 +200,8 @@ export class Editor {
}; };
triggerOnChange = (): void => { triggerOnChange = (): void => {
console.log('trigger on change', this.isEmpty, this.getIsEmpty());
if (this.isEmpty !== this.getIsEmpty()) this.setIsEmpty(this.isEmpty); if (this.isEmpty !== this.getIsEmpty()) this.setIsEmpty(this.isEmpty);
if (this.getEditing() && !this.getChanged()) this.setChanged(true); if (this.getEditing() && !this.getChanged()) this.setChanged(true);
}; };