From 7178df10359d6ec4dbf3c98070cb02d73bf07f02 Mon Sep 17 00:00:00 2001 From: Yuan Gao Date: Mon, 8 May 2017 11:06:41 -0700 Subject: [PATCH] fix test --- src/lib/radio/radio.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/radio/radio.ts b/src/lib/radio/radio.ts index 6c41e4a962be..ebccd6fbcdbd 100644 --- a/src/lib/radio/radio.ts +++ b/src/lib/radio/radio.ts @@ -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()); } } @@ -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(); } /**