Skip to content

Commit f07ff18

Browse files
FormState.Validating status calculation fixed.
1 parent 0b159d6 commit f07ff18

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/simplr-forms-core/src/stores/form-store.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,8 @@ export class FormStore extends ActionEmitter {
379379
} as FieldState));
380380
}
381381
});
382+
383+
return this.RecalculateDependentFormState(state);
382384
});
383385
}
384386

@@ -403,6 +405,8 @@ export class FormStore extends ActionEmitter {
403405
} as FieldState));
404406
}
405407
});
408+
409+
return this.RecalculateDependentFormState(state);
406410
});
407411
}
408412

@@ -503,7 +507,7 @@ export class FormStore extends ActionEmitter {
503507
if (!updater.Touched && fieldState.Touched) {
504508
updater.Touched = true;
505509
}
506-
if (!fieldState.Validating) {
510+
if (fieldState.Validating) {
507511
updater.Validating = true;
508512
}
509513

0 commit comments

Comments
 (0)