kelt-ui-kit-react 0.6.1 → 0.6.3

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
@@ -2316,9 +2316,12 @@ const Bo = Gt.div`
2316
2316
  });
2317
2317
  },
2318
2318
  [n]
2319
- ), v = $(() => {
2320
- console.log("je passeee"), r && r(c);
2321
- }, [r, c]), y = () => {
2319
+ ), v = $(
2320
+ (w) => {
2321
+ w.preventDefault(), r && r(c);
2322
+ },
2323
+ [r, c]
2324
+ ), y = () => {
2322
2325
  u(() => {
2323
2326
  const w = {};
2324
2327
  return e.forEach((j) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kelt-ui-kit-react",
3
3
  "type": "module",
4
- "version": "0.6.1",
4
+ "version": "0.6.3",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
package/src/form/Form.tsx CHANGED
@@ -67,12 +67,15 @@ export const DynamicForm = forwardRef(
67
67
  [onChange]
68
68
  );
69
69
 
70
- const handleSubmit = useCallback(() => {
71
- console.log("je passeee");
72
- if (onSubmit) {
73
- onSubmit(values);
74
- }
75
- }, [onSubmit, values]);
70
+ const handleSubmit = useCallback(
71
+ (e: React.FormEvent<HTMLFormElement>) => {
72
+ e.preventDefault();
73
+ if (onSubmit) {
74
+ onSubmit(values);
75
+ }
76
+ },
77
+ [onSubmit, values]
78
+ );
76
79
 
77
80
  const resetForm = () => {
78
81
  setValues(() => {