Roo/bootstrap/ComboBox.js
authorjohn <john@roojs.com>
Tue, 29 May 2018 05:52:15 +0000 (13:52 +0800)
committerjohn <john@roojs.com>
Tue, 29 May 2018 05:52:15 +0000 (13:52 +0800)
Roo/bootstrap/ComboBox.js

index 59210c4..4d6be4a 100644 (file)
@@ -1721,15 +1721,14 @@ 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();
@@ -1864,7 +1863,11 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, {
     
     onSearchFieldClick : function(e)
     {
+        Roo.log('in???');
+        Roo.log([this.hasFocus, e.getTarget().nodeName.toLowerCase() ]);
+        
         if(this.hasFocus && !this.disabled && e.getTarget().nodeName.toLowerCase() != 'button'){
+            Roo.log('onSearchFieldClick');
             this.onTickableFooterButtonClick(e, false, false);
             return;
         }