@raketa-builder/next-form 0.1.0 → 0.2.0

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/dist/index.js CHANGED
@@ -842,7 +842,7 @@ var require_dist = __commonJS({
842
842
  pathname: router.pathname,
843
843
  query: __spreadValues2(__spreadValues2({}, router.query), { page: currentPage - 1 })
844
844
  },
845
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("a", { children: "Previous" })
845
+ children: "Previous"
846
846
  }
847
847
  );
848
848
  };
@@ -857,7 +857,7 @@ var require_dist = __commonJS({
857
857
  pathname: router.pathname,
858
858
  query: __spreadValues2(__spreadValues2({}, router.query), { page: currentPage + 1 })
859
859
  },
860
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("a", { children: "Next" })
860
+ children: "Next"
861
861
  }
862
862
  );
863
863
  };
@@ -888,7 +888,7 @@ var require_dist = __commonJS({
888
888
  pathname: router.pathname,
889
889
  query: __spreadValues2(__spreadValues2({}, router.query), { page: pageNum })
890
890
  },
891
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("a", { children: pageNum })
891
+ children: pageNum
892
892
  },
893
893
  pageNum
894
894
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-builder/next-form",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "MIT",
package/src/Form.js CHANGED
@@ -36,7 +36,7 @@ const Form = ({ children, defaultValues = {}, onSubmit, ...rest }) => {
36
36
 
37
37
  setState({ ...state, submitting: true });
38
38
 
39
- onSubmit(formData, setErrors);
39
+ onSubmit(formData, setErrors, e.target);
40
40
  }}
41
41
  {...rest}
42
42
  >