fix(radio): only fire group change if there is a group (#1622)

This commit is contained in:
Jeremy Elbourn
2016-10-27 10:09:58 -07:00
committed by GitHub
parent d83b3e0b1e
commit 065469ae36
+1 -1
View File
@@ -415,10 +415,10 @@ export class MdRadioButton implements OnInit {
event.stopPropagation();
this.checked = true;
this.radioGroup._controlValueAccessorChangeFn(this.value);
this._emitChangeEvent();
if (this.radioGroup) {
this.radioGroup._controlValueAccessorChangeFn(this.value);
this.radioGroup._touch();
}
}