remix-validated-form 4.5.5 → 4.5.6

Sign up to get free protection for your applications and to get access to all the features.
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,