소스 검색

MessageBox: fix invalid input border color when inputValidator returns string (#10729)

cnjs 7 년 전
부모
커밋
f2988cd1bd
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      packages/message-box/src/main.vue

+ 1 - 0
packages/message-box/src/main.vue

@@ -223,6 +223,7 @@
             }
             if (typeof validateResult === 'string') {
               this.editorErrorMessage = validateResult;
+              addClass(this.getInputElement(), 'invalid');
               return false;
             }
           }