ソースを参照

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