Fix:修复少数情况下,创建新节点时输入中文时文本样式丢失的问题

This commit is contained in:
wanglin2 2023-10-18 15:22:17 +08:00
parent b1985846fe
commit 049ef7f6e3

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)
}