remix-validated-form 4.6.9 → 4.6.10
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 +18 -18
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/ValidatedForm.tsx +2 -3
package/dist/index.esm.js
CHANGED
@@ -1551,7 +1551,7 @@ function ValidatedForm({
|
|
1551
1551
|
startSubmit();
|
1552
1552
|
const submitter = nativeEvent.submitter;
|
1553
1553
|
const formMethod = (submitter == null ? void 0 : submitter.formMethod) || method;
|
1554
|
-
const formDataToValidate = getDataFromForm(
|
1554
|
+
const formDataToValidate = getDataFromForm(target);
|
1555
1555
|
if (submitter == null ? void 0 : submitter.name) {
|
1556
1556
|
formDataToValidate.append(submitter.name, submitter.value);
|
1557
1557
|
}
|
@@ -1575,7 +1575,7 @@ function ValidatedForm({
|
|
1575
1575
|
return;
|
1576
1576
|
}
|
1577
1577
|
if (fetcher)
|
1578
|
-
fetcher.submit(submitter ||
|
1578
|
+
fetcher.submit(submitter || target, { method: formMethod });
|
1579
1579
|
else
|
1580
1580
|
submit(submitter || target, {
|
1581
1581
|
replace: replace2,
|