Roo/bootstrap/ComboBox.js
authorEdward <edward@roojs.com>
Fri, 8 May 2015 09:32:08 +0000 (17:32 +0800)
committerEdward <edward@roojs.com>
Fri, 8 May 2015 09:32:08 +0000 (17:32 +0800)
Roo/bootstrap/ComboBox.js

index 2fc4877..1db52ed 100644 (file)
@@ -1723,6 +1723,15 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, {
         
         this.collapse();
         
+    },
+    
+    validate : function()
+    {
+        if(this.disabled || this.validateValue(this.getValue())){
+            this.clearInvalid();
+            return true;
+        }
+        return false;
     }