fix(forms): make radio button selection logic more flexible (#9646)

Closes #9558
This commit is contained in:
Kara
2016-06-27 15:29:33 -06:00
committed by GitHub
parent 5cc7b41f39
commit ed0ade6f34
2 changed files with 40 additions and 0 deletions

View File

@ -51,6 +51,7 @@ export class RadioControlRegistry {
private _isSameGroup(
controlPair: [NgControl, RadioControlValueAccessor], accessor: RadioControlValueAccessor) {
if (!controlPair[0].control) return false;
return controlPair[0].control.root === accessor._control.control.root &&
controlPair[1].name === accessor.name;
}