Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tinayuangao committed May 8, 2017
1 parent 79261eb commit 7178df1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/radio/radio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ export class MdRadioGroup extends _MdRadioGroupMixinBase
set disabled(value) {
this._disabled = value;
if (this._radios) {
// Update radios disabled state
this._radios.forEach((r) => r._groupValueChanged());
}
}
Expand Down Expand Up @@ -400,9 +401,10 @@ export class MdRadioButton implements OnInit, AfterViewInit, OnDestroy {
get disabled(): boolean {
return this._disabled || (this.radioGroup != null && this.radioGroup.disabled);
}

set disabled(value: boolean) {
this._disabled = coerceBooleanProperty(value);
// Update rippleDisabled
this._changeDetector.markForCheck();
}

/**
Expand Down

0 comments on commit 7178df1

Please sign in to comment.