Roo/bootstrap/ComboBox.js
authorMichael <michael@roojs.com>
Thu, 5 Feb 2015 10:04:23 +0000 (18:04 +0800)
committerMichael <michael@roojs.com>
Thu, 5 Feb 2015 10:04:23 +0000 (18:04 +0800)
Roo/bootstrap/ComboBox.js

index cbaa3b9..9d4ef8f 100644 (file)
@@ -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});