fix(radio-group): propagate the disabled attribute

This commit is contained in:
Ken Sodemann
2018-02-06 16:49:30 -06:00
committed by Brandy Carney
parent 3716300df5
commit c6007cf320

View File

@ -34,6 +34,13 @@ export class RadioGroup implements ComponentDidLoad, RadioGroupInput {
*/
@Prop({ mutable: true }) value: string;
@Watch('disabled')
disabledChanged() {
this.radios.forEach(radio => {
radio.disabled = this.disabled;
});
}
@Watch('value')
valueChanged() {
// this radio group's value just changed