From 7c7cff7ec11025a4d739ff81b83d20675a04732c Mon Sep 17 00:00:00 2001 From: Yuan Gao Date: Tue, 1 Nov 2016 14:00:46 -0700 Subject: [PATCH] Fix the error when there's no radioGroup --- src/lib/radio/radio.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/radio/radio.ts b/src/lib/radio/radio.ts index bae13f07c039..bd71acd4bbb1 100644 --- a/src/lib/radio/radio.ts +++ b/src/lib/radio/radio.ts @@ -420,7 +420,7 @@ export class MdRadioButton implements OnInit { // emit its event object to the `change` output. event.stopPropagation(); - let groupValueChanged = this.value != this.radioGroup.value; + let groupValueChanged = this.radioGroup && this.value != this.radioGroup.value; this.checked = true; this._emitChangeEvent();