From 9cf7f126e3eeda9a0a6d09b11d486f253f317184 Mon Sep 17 00:00:00 2001 From: john Date: Tue, 29 May 2018 13:51:40 +0800 Subject: [PATCH] Roo/bootstrap/ComboBox.js --- Roo/bootstrap/ComboBox.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Roo/bootstrap/ComboBox.js b/Roo/bootstrap/ComboBox.js index d6eff91e5c..59210c42bf 100644 --- a/Roo/bootstrap/ComboBox.js +++ b/Roo/bootstrap/ComboBox.js @@ -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(); -- 2.39.2