Explorar el Código

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

cnjs hace 7 años
padre
commit
f2988cd1bd
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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;
             }
           }