Skip to content

Commit

Permalink
Fix the error when there's no radioGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
tinayuangao committed Nov 1, 2016
1 parent 4f8ccb4 commit 7c7cff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/radio/radio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 7c7cff7

Please sign in to comment.