Roo/form/ComboBoxArray.js
authorAlan Knowles <alan@roojs.com>
Wed, 2 May 2012 05:12:15 +0000 (13:12 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 2 May 2012 05:12:15 +0000 (13:12 +0800)
Roo/form/ComboBoxArray.js

index 9ebc3c1..3bfae81 100644 (file)
@@ -154,8 +154,9 @@ Roo.extend(Roo.form.ComboBoxArray, Roo.form.TextField
         
         this.combo.on('select', function(cb, rec, ix) {
             this.addItem(rec.data);
-            this.setValue('');
-            this.el.dom.value = '';
+            
+            cb.setValue('');
+            cb.el.dom.value = '';
             //cb.lastData = rec.data;
             // add to list