Roo/bootstrap/Input.js
authorEdward <edward@roojs.com>
Mon, 3 Dec 2018 04:42:41 +0000 (12:42 +0800)
committerEdward <edward@roojs.com>
Mon, 3 Dec 2018 04:42:41 +0000 (12:42 +0800)
Roo/bootstrap/Input.js

index 21f9ea1..fc009f3 100644 (file)
@@ -680,9 +680,11 @@ Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component,  {
         }
         
         if(value.length < this.minLength){
+            this.invalidText = String.format(this.minLengthText, this.minLength);
             return false;
         }
         if(value.length > this.maxLength){
+            this.invalidText = String.format(this.maxLengthText, this.maxLength);
             return false;
         }
         if(this.vtype){