From 815d4ceeeffbc04e51e330c6fdc9c78f16346393 Mon Sep 17 00:00:00 2001 From: Dylan Hunn Date: Sat, 11 Dec 2021 17:07:45 -0800 Subject: [PATCH] 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 --- packages/forms/src/model.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/forms/src/model.ts b/packages/forms/src/model.ts index f7c1b9ce85a..8d5620f33f6 100644 --- a/packages/forms/src/model.ts +++ b/packages/forms/src/model.ts @@ -1230,8 +1230,14 @@ export abstract class AbstractControl { export class FormControl extends AbstractControl { /** @internal */ _onChange: Array = []; - /** @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;