We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45cfe2b commit 5dcab34Copy full SHA for 5dcab34
libs/reactive-forms/src/lib/core.ts
@@ -134,5 +134,5 @@ export function controlErrorChanges$(
134
export function markAllDirty(control: AbstractControl): void {
135
control.markAsDirty({ onlySelf: true });
136
137
- (control as any)._forEachChild((control: any) => control.markAllAsDirty?.());
+ (control as any)._forEachChild((control: any) => control.markAllAsDirty?.() || control.markAsDirty({ onlySelf: true }));
138
}
0 commit comments