فهرست منبع

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') {
             if (typeof validateResult === 'string') {
               this.editorErrorMessage = validateResult;
               this.editorErrorMessage = validateResult;
+              addClass(this.getInputElement(), 'invalid');
               return false;
               return false;
             }
             }
           }
           }