fix(forms): fix resetting radios (#11546)

Closes #11516
This commit is contained in:
Kara
2016-09-12 15:15:58 -07:00
committed by Evan Martin
parent 79055f727b
commit 61aad7925f
3 changed files with 103 additions and 4 deletions

View File

@ -110,9 +110,7 @@ export class RadioControlValueAccessor implements ControlValueAccessor,
writeValue(value: any): void {
this._state = value === this.value;
if (isPresent(value)) {
this._renderer.setElementProperty(this._elementRef.nativeElement, 'checked', this._state);
}
this._renderer.setElementProperty(this._elementRef.nativeElement, 'checked', this._state);
}
registerOnChange(fn: (_: any) => {}): void {