Skip to content

Commit 815d4ce

Browse files
dylhunnalxhub
authored andcommitted
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
1 parent e483993 commit 815d4ce

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/forms/src/model.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,8 +1230,14 @@ export abstract class AbstractControl {
12301230
export class FormControl extends AbstractControl {
12311231
/** @internal */
12321232
_onChange: Array<Function> = [];
1233-
/** @internal */
1234-
_pendingValue: boolean = false;
1233+
1234+
1235+
/**
1236+
* This field holds a pending value that has not yet been applied to the form's value.
1237+
* It is `any` because the value is untyped.
1238+
* @internal
1239+
*/
1240+
_pendingValue: any;
12351241

12361242
/** @internal */
12371243
_pendingChange: boolean = false;

0 commit comments

Comments
 (0)