From 2ed8434c973af2682c0628c2fcf1ec39024af9e7 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 2 May 2012 15:26:43 +0800 Subject: [PATCH] Roo/form/ComboBoxArray.js --- Roo/form/ComboBoxArray.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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.. -- 2.39.2