From: Michael Date: Thu, 5 Feb 2015 10:04:23 +0000 (+0800) Subject: Roo/bootstrap/ComboBox.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=8c8da0a4c7e4b8ae611e0834a26e6ffed824be56 Roo/bootstrap/ComboBox.js --- 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});