fix wip_leon_T7391_New_Customer_Portal_30_Login
authorleon <leon@roojs.com>
Tue, 8 Nov 2022 06:16:35 +0000 (14:16 +0800)
committerleon <leon@roojs.com>
Tue, 8 Nov 2022 06:16:35 +0000 (14:16 +0800)
Roo/bootstrap/form/Input.js

index 7fdabc3..3b43fc2 100644 (file)
@@ -707,12 +707,12 @@ Roo.extend(Roo.bootstrap.form.Input, Roo.bootstrap.Component,  {
         }
         if(typeof this.validator == "function"){
             var msg = this.validator(value);
-            if(msg !== true){
-                return false;
-            }
             if (typeof(msg) == 'string') {
                 this.invalidText = msg;
             }
+            if(msg !== true){
+                return false;
+            }
         }
         
         if(this.regex && !this.regex.test(value)){