@solidpb/ui-kit 0.4.0 → 0.4.1

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.
@@ -20,7 +20,6 @@ export function createForm() {
20
20
  const Form = (props) => {
21
21
  const [values, setValues] = createStore({ ...props.data });
22
22
  const setValue = (key, value) => {
23
- console.log("Setting value", key, value);
24
23
  setValues(key, value);
25
24
  };
26
25
  const getValue = (key) => {
@@ -29,7 +28,7 @@ export function createForm() {
29
28
  const contextValue = { setValue, getValue };
30
29
  const handleSubmit = (e) => {
31
30
  e.preventDefault();
32
- props.onSave?.(JSON.parse(JSON.stringify(values))); // deep clone to avoid issues with reactive proxies
31
+ props.onSave?.(values);
33
32
  };
34
33
  return (<InternalFormContext.Provider value={contextValue}>
35
34
  <form onSubmit={handleSubmit} class={formClass({ class: props.class })}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidpb/ui-kit",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",