Roo/form/ComboBoxArray.js
authoredward <edward@roojs.com>
Wed, 20 Jul 2016 07:48:32 +0000 (15:48 +0800)
committeredward <edward@roojs.com>
Wed, 20 Jul 2016 07:48:32 +0000 (15:48 +0800)
Roo/form/ComboBoxArray.js

index 530279c..5afa5e2 100644 (file)
@@ -275,10 +275,12 @@ Roo.extend(Roo.form.ComboBoxArray, Roo.form.TextField,
     
     reset : function()
     {
-        //Roo.form.ComboBoxArray.superclass.reset.call(this); 
-        this.items.each(function(f) {
-           f.remove(); 
+        this.items.clear();
+        
+        Roo.each(this.outerWrap.select('.x-cbarray-item', true).elements, function(el){
+           el.remove();
         });
+        
         this.el.dom.value = '';
         if (this.hiddenEl) {
             this.hiddenEl.dom.value = '';