@azure-net/kit 1.4.35 → 1.4.37

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.
@@ -37,7 +37,7 @@ class SchemaBuilderImpl {
37
37
  if (dataToPrepare instanceof FormData) {
38
38
  return FormDataUtil.toObject(dataToPrepare);
39
39
  }
40
- return ObjectUtil.deepClone(dataToPrepare, true);
40
+ return dataToPrepare;
41
41
  };
42
42
  const getByPath = (path, data) => {
43
43
  return path.split('.').reduce((o, k) => (o && typeof o === 'object' ? o[k] : undefined), data);
@@ -8,7 +8,7 @@ export const createActiveForm = (onSubmit, config) => {
8
8
  const submit = async () => {
9
9
  pending = true;
10
10
  try {
11
- const result = await onSubmit(ObjectUtil.deepClone(formData, true));
11
+ const result = await onSubmit($state.snapshot(formData));
12
12
  if (result.error?.fields) {
13
13
  formErrors = result.error.fields;
14
14
  }
@@ -25,7 +25,7 @@ export const createActiveForm = (onSubmit, config) => {
25
25
  }
26
26
  };
27
27
  const reset = (toInitial = false) => {
28
- formData = toInitial ? ObjectUtil.deepClone(initial, true) : {};
28
+ formData = toInitial ? ObjectUtil.deepClone(initial) : {};
29
29
  formErrors = {};
30
30
  };
31
31
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-net/kit",
3
- "version": "1.4.35",
3
+ "version": "1.4.37",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",