Roo/bootstrap/Input.js
authorEdward <edward@roojs.com>
Tue, 10 Jul 2018 04:56:22 +0000 (12:56 +0800)
committerEdward <edward@roojs.com>
Tue, 10 Jul 2018 04:56:22 +0000 (12:56 +0800)
Roo/bootstrap/Input.js

index d40fe99..3f3e2ce 100644 (file)
@@ -655,8 +655,11 @@ Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component,  {
             return true;
         }
         
-        if(value.length < 1 && this.allowBlank)  { // if it's blank
-            return true;
+        if(value.length < 1)  { // if it's blank
+            if(this.allowBlank){
+                return true;
+            }
+            return false;
         }
         
         if(value.length < this.minLength){