fix(forms): add RadioButtonValueAccessor to the list of default value accessors
This commit is contained in:
parent
df7885c9f5
commit
8f47aa3530
|
@ -13,6 +13,7 @@ import {DefaultValueAccessor} from './default_value_accessor';
|
|||
import {NumberValueAccessor} from './number_value_accessor';
|
||||
import {CheckboxControlValueAccessor} from './checkbox_value_accessor';
|
||||
import {SelectControlValueAccessor} from './select_control_value_accessor';
|
||||
import {RadioControlValueAccessor} from './radio_control_value_accessor';
|
||||
import {normalizeValidator} from './normalize_validator';
|
||||
|
||||
|
||||
|
@ -85,7 +86,7 @@ export function selectValueAccessor(dir: NgControl,
|
|||
defaultAccessor = v;
|
||||
|
||||
} else if (v instanceof CheckboxControlValueAccessor || v instanceof NumberValueAccessor ||
|
||||
v instanceof SelectControlValueAccessor) {
|
||||
v instanceof SelectControlValueAccessor || v instanceof RadioControlValueAccessor) {
|
||||
if (isPresent(builtinAccessor))
|
||||
_throwError(dir, "More than one built-in value accessor matches");
|
||||
builtinAccessor = v;
|
||||
|
|
Loading…
Reference in New Issue