fix(forms): default the initial value of Control to null
This commit is contained in:
@@ -144,7 +144,7 @@ export class AbstractControl {
|
||||
export class Control extends AbstractControl {
|
||||
_onChange: Function;
|
||||
|
||||
constructor(value: any, validator: Function = Validators.nullValidator) {
|
||||
constructor(value: any = null, validator: Function = Validators.nullValidator) {
|
||||
super(validator);
|
||||
this._value = value;
|
||||
this.updateValidity({onlySelf: true});
|
||||
|
||||
Reference in New Issue
Block a user