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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remix-validated-form",
3
- "version": "4.5.5",
3
+ "version": "4.5.6",
4
4
  "description": "Form component and utils for easy form validation in remix",
5
5
  "browser": "./dist/remix-validated-form.cjs.js",
6
6
  "main": "./dist/remix-validated-form.umd.js",
@@ -305,8 +305,8 @@ export function ValidatedForm<DataType>({
305
305
  startSubmit();
306
306
  const result = await validator.validate(getDataFromForm(e.currentTarget));
307
307
  if (result.error) {
308
- endSubmit();
309
308
  setFieldErrors(result.error.fieldErrors);
309
+ endSubmit();
310
310
  if (!disableFocusOnError) {
311
311
  focusFirstInvalidInput(
312
312
  result.error.fieldErrors,