
committed by
Victor Berchet

parent
0b665c0ece
commit
d2ad871279
@ -253,6 +253,12 @@ export abstract class AbstractControl {
|
||||
}
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
_updateTreeValidity({emitEvent}: {emitEvent?: boolean} = {emitEvent: true}) {
|
||||
this._forEachChild((ctrl: AbstractControl) => ctrl._updateTreeValidity({emitEvent}));
|
||||
this.updateValueAndValidity({onlySelf: true, emitEvent});
|
||||
}
|
||||
|
||||
private _runValidator(): {[key: string]: any} {
|
||||
return isPresent(this.validator) ? this.validator(this) : null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user