From 8c8da0a4c7e4b8ae611e0834a26e6ffed824be56 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 5 Feb 2015 18:04:23 +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 cbaa3b982b..9d4ef8f5a7 100644 --- a/Roo/bootstrap/ComboBox.js +++ b/Roo/bootstrap/ComboBox.js @@ -681,8 +681,9 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, { this.choices = this.el.select('ul.select2-choices', true).first(); this.searchField = this.el.select('ul li.select2-search-field', true).first(); - - this.searchField.on("click", this.onSearchFieldClick, this, {preventDefault:true}); + if(this.editNotList){ + this.searchField.on("click", this.onSearchFieldClick, this, {preventDefault:true}); + } this.trigger = this.el.select('.tickable-buttons > .btn-edit', true).first(); this.trigger.on("click", this.onTickableTriggerClick, this, {preventDefault:true}); -- 2.39.2