diff --git a/packages/quill/src/core/quill.ts b/packages/quill/src/core/quill.ts index dae5267bc..110ba4a45 100644 --- a/packages/quill/src/core/quill.ts +++ b/packages/quill/src/core/quill.ts @@ -231,7 +231,7 @@ class Quill { this.theme.addModule('uiNode'); this.theme.init(); this.emitter.on(Emitter.events.EDITOR_CHANGE, (type) => { - if (type === Emitter.events.TEXT_CHANGE) { + if ([Emitter.events.TEXT_CHANGE, Emitter.events.COMPOSITION_START].includes(type)) { this.root.classList.toggle('ql-blank', this.editor.isBlank()); } });