Roo/bootstrap/ComboBox.js
[roojs1] / Roo / bootstrap / ComboBox.js
index d6eff91..59210c4 100644 (file)
@@ -1721,14 +1721,15 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, {
      * Hides the dropdown list if it is currently expanded. Fires the 'collapse' event on completion.
      */
     collapse : function(){
+        
+        this.hasFocus = false;
+        
         if(!this.isExpanded()){
             return;
         }
         
         this.list.hide();
         
-        this.hasFocus = false;
-        
         if(this.tickable){
             
             this.okBtn.hide();