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/.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
package/package.json
CHANGED
package/src/ValidatedForm.tsx
CHANGED
@@ -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,
|