Fix:修复极少数情况下输入中文时文本样式丢失的问题

This commit is contained in:
wanglin2 2023-10-18 15:34:14 +08:00
parent 23a3e26800
commit 32fc6937d2

View File

@ -422,10 +422,13 @@ class RichText {
// 中文输入结束
onCompositionEnd() {
if (!this.showTextEdit || !this.lostStyle) {
if (!this.showTextEdit) {
return
}
this.isCompositing = false
if (!this.lostStyle) {
return
}
this.setTextStyleIfNotRichText(this.node)
}