Эх сурвалжийг харах

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

cnjs 7 жил өмнө
parent
commit
f2988cd1bd

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