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/.turbo/turbo-build.log +13 -13
- package/browser/ValidatedForm.js +1 -1
- package/browser/internal/logic/requestSubmit.d.ts +0 -0
- package/browser/internal/logic/requestSubmit.js +27 -2
- package/dist/remix-validated-form.cjs.js +1 -1
- package/dist/remix-validated-form.cjs.js.map +1 -1
- package/dist/remix-validated-form.es.js +1 -1
- package/dist/remix-validated-form.es.js.map +1 -1
- package/dist/remix-validated-form.umd.js +1 -1
- package/dist/remix-validated-form.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/ValidatedForm.tsx +1 -1
@@ -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,
|