use item.el.getValue() to compare the value when picking the radio in the radiogroup

This commit is contained in:
Damien Churchill 2009-07-29 08:55:24 +00:00
parent a62c545d4a
commit 5ec004b2ff
1 changed files with 3 additions and 2 deletions

View File

@ -777,7 +777,8 @@ Ext.override(Ext.form.RadioGroup, {
setValue: function(v) {
if (!this.items.each) return;
this.items.each(function(item) {
item.setValue((item.originalValue == v));
var checked = (item.el.getValue() == String(v));
item.setValue(checked);
});
}
});