fix(forms): I indroduced a minor error in a previous PR: pendingValue is a value not a boolean flag. (#44450)

The bug should have no effect since it's a typings-only, internal-only bug, but it's good to fix nonetheless.

PR Close #44450
This commit is contained in:
Dylan Hunn 2021-12-11 17:07:45 -08:00 committed by Alex Rickabaugh
parent e4839939b0
commit 815d4ceeef

View file

@ -1230,8 +1230,14 @@ export abstract class AbstractControl {
export class FormControl extends AbstractControl {
/** @internal */
_onChange: Array<Function> = [];
/** @internal */
_pendingValue: boolean = false;
/**
* This field holds a pending value that has not yet been applied to the form's value.
* It is `any` because the value is untyped.
* @internal
*/
_pendingValue: any;
/** @internal */
_pendingChange: boolean = false;