X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=Roo%2Fform%2FComboBoxArray.js;h=a4ba00924d4fd85c28e2d0f481bb14e11c45d282;hp=c6051e802e6b920e9c177dec4457decd1d4efaef;hb=f1c548edb9d25e6c7497250d3717ffd605ee74db;hpb=0dc0ec62632c353a4e2fda7b6a690dc9922ce874 diff --git a/Roo/form/ComboBoxArray.js b/Roo/form/ComboBoxArray.js index c6051e802e..a4ba00924d 100644 --- a/Roo/form/ComboBoxArray.js +++ b/Roo/form/ComboBoxArray.js @@ -230,7 +230,7 @@ Roo.extend(Roo.form.ComboBoxArray, Roo.form.TextField, var valueField = this.combo.valueField; var displayField = this.combo.displayField; if (this.items.indexOfKey(rec[valueField]) > -1) { - //console.log("GOT " + rec.data.id); + Roo.log("GOT " + rec.data.id); return; } @@ -458,6 +458,9 @@ Roo.extend(Roo.form.ComboBoxArray.Item, Roo.BoxComponent, { remove : function() { + if(this.cb.disabled){ + return; + } this.cb.items.remove(this); this.el.child('img').un('click', this.remove, this); this.el.remove();