mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
fix(radio-group): propagate the disabled attribute
This commit is contained in:
committed by
Brandy Carney
parent
3716300df5
commit
c6007cf320
@ -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
|
||||
|
||||
Reference in New Issue
Block a user