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 41f6177 commit c95a50fCopy full SHA for c95a50f
projects/ngneat/forms-manager/src/lib/forms-manager.ts
@@ -630,7 +630,11 @@ export class NgFormsManager<FormsState = any> {
630
control.markAsDirty(options);
631
632
if (control instanceof FormGroup || control instanceof FormArray) {
633
- Object.values(control.controls).forEach((control: AbstractControl) => {
+ let controls: AbstractControl[] = Object.keys(control.controls).map(
634
+ controlName => control.controls[controlName]
635
+ );
636
+
637
+ controls.forEach(control => {
638
639
640
if ((control as FormGroup | FormArray).controls) {
0 commit comments