From: Alan Knowles Date: Wed, 2 May 2012 07:26:43 +0000 (+0800) Subject: Roo/form/ComboBoxArray.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=2ed8434c973af2682c0628c2fcf1ec39024af9e7 Roo/form/ComboBoxArray.js --- diff --git a/Roo/form/ComboBoxArray.js b/Roo/form/ComboBoxArray.js index c1c711662b..8a0a6af790 100644 --- a/Roo/form/ComboBoxArray.js +++ b/Roo/form/ComboBoxArray.js @@ -252,7 +252,7 @@ Roo.extend(Roo.form.ComboBoxArray, Roo.form.TextField, reset : function() { - Roo.form.ComboBoxArray.superclass.reset.call(this); + //Roo.form.ComboBoxArray.superclass.reset.call(this); this.items.each(function(f) { f.remove(); }); @@ -268,7 +268,8 @@ Roo.extend(Roo.form.ComboBoxArray, Roo.form.TextField, setValue: function(v) // not a valid action - must use addItems.. { - + this.reset(); + if (this.store.isLocal) { // then we can use the store to find the values.. // comma seperated at present.. this needs to allow JSON based encoding..