소스 검색

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,