From f737411d76fa5f6ed912cd8fcb11e1d33f39c9bb Mon Sep 17 00:00:00 2001 From: leon Date: Tue, 8 Nov 2022 14:16:35 +0800 Subject: [PATCH] fix --- Roo/bootstrap/form/Input.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Roo/bootstrap/form/Input.js b/Roo/bootstrap/form/Input.js index 7fdabc35f6..3b43fc2b7e 100644 --- a/Roo/bootstrap/form/Input.js +++ b/Roo/bootstrap/form/Input.js @@ -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)){ -- 2.39.2