Roo/form/Select.js
authorAlan Knowles <alan@roojs.com>
Tue, 17 Dec 2013 02:41:35 +0000 (10:41 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 17 Dec 2013 02:41:35 +0000 (10:41 +0800)
Roo/form/Select.js

index 18184fc..1dcb3c3 100644 (file)
@@ -292,8 +292,8 @@ Roo.extend(Roo.form.Select , Roo.form.ComboBox, {
                 op.innerHTML = String.format('{0}', r.data[df]);
                 dom.appendChild(op);
             });
-            if (typeof(this.value != 'undefined')) {
-                this.setValue(this.value);
+            if (typeof(this.defaultValue != 'undefined')) {
+                this.setValue(this.defaultValue);
             }