mirror of
https://github.com/google/material-design-lite.git
synced 2024-09-11 12:25:38 +03:00
Merge pull request #4809 from aJchemist/patch-1
Fixed MaterialRadio.prototype.onChange_
This commit is contained in:
commit
24e1b02db0
@ -82,7 +82,9 @@
|
||||
var button = radios[i].querySelector('.' + this.CssClasses_.RADIO_BTN);
|
||||
// Different name == different group, so no point updating those.
|
||||
if (button.getAttribute('name') === this.btnElement_.getAttribute('name')) {
|
||||
radios[i]['MaterialRadio'].updateClasses_();
|
||||
if (typeof radios[i]['MaterialRadio'] !== 'undefined') {
|
||||
radios[i]['MaterialRadio'].updateClasses_();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user