浏览代码

fix: v2.4.7 一轮测试修复

wzl 6 月之前
父节点
当前提交
81339e913f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/core/src/editor/text_editor.js

+ 1 - 1
packages/core/src/editor/text_editor.js

@@ -1489,7 +1489,7 @@ export class TextEditor {
       if (props[item] === this.textStyle[item]) continue
 
       if (item === 'alignType') {
-        if (!this.selectedCharRange) {
+        if (!this.selectedCharRange && this.state === 2) {
           await this.messageHandler.sendWithPromise('SetTextAligningSection', {
             editAreaPtr: this.editAreaPtr,
             alignType: props.alignType,