mirror of
https://github.com/google/material-design-lite.git
synced 2024-09-11 12:25:38 +03:00
Fixed MaterialRadio.prototype.onChange_
Fixed Uncaught TypeError: Cannot read property 'updateClasses_' of undefined
This commit is contained in:
parent
621bdd2352
commit
720deed673
@ -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