remix-validated-form 4.5.5 → 4.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2808,8 +2808,8 @@ function ValidatedForm({
2808
2808
  startSubmit();
2809
2809
  const result = await validator.validate(getDataFromForm(e2.currentTarget));
2810
2810
  if (result.error) {
2811
- endSubmit();
2812
2811
  setFieldErrors(result.error.fieldErrors);
2812
+ endSubmit();
2813
2813
  if (!disableFocusOnError) {
2814
2814
  focusFirstInvalidInput(
2815
2815
  result.error.fieldErrors,