mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(radio): only fire group change if there is a group (#1622)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user