@rjsf/core 6.0.0-beta.16 → 6.0.0-beta.17

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/core.umd.js CHANGED
@@ -1897,10 +1897,10 @@
1897
1897
  onDropPropertyClick = (key) => {
1898
1898
  return (event) => {
1899
1899
  event.preventDefault();
1900
- const { onChange, formData, name } = this.props;
1900
+ const { onChange, formData } = this.props;
1901
1901
  const copiedFormData = { ...formData };
1902
1902
  unset(copiedFormData, key);
1903
- onChange(copiedFormData, [name]);
1903
+ onChange(copiedFormData, []);
1904
1904
  };
1905
1905
  };
1906
1906
  /** Computes the next available key name from the `preferredKey`, indexing through the already existing keys until one
@@ -1979,7 +1979,7 @@
1979
1979
  if (!(schema.additionalProperties || schema.patternProperties)) {
1980
1980
  return;
1981
1981
  }
1982
- const { formData, name, onChange, registry } = this.props;
1982
+ const { formData, onChange, registry } = this.props;
1983
1983
  const newFormData = { ...formData };
1984
1984
  const newKey = this.getAvailableKey("newKey", newFormData);
1985
1985
  if (schema.patternProperties) {
@@ -2007,7 +2007,7 @@
2007
2007
  const newValue = constValue ?? defaultValue ?? this.getDefaultValue(type);
2008
2008
  set(newFormData, newKey, newValue);
2009
2009
  }
2010
- onChange(newFormData, [name]);
2010
+ onChange(newFormData, []);
2011
2011
  };
2012
2012
  /** Renders the `ObjectField` from the given props
2013
2013
  */
@@ -4601,7 +4601,7 @@
4601
4601
  /* @__PURE__ */ jsxRuntime.jsx(
4602
4602
  _SchemaField,
4603
4603
  {
4604
- name: idPrefix,
4604
+ name: "",
4605
4605
  schema,
4606
4606
  uiSchema,
4607
4607
  errorSchema,
package/dist/index.cjs CHANGED
@@ -2021,10 +2021,10 @@ var ObjectField = class extends import_react8.Component {
2021
2021
  onDropPropertyClick = (key) => {
2022
2022
  return (event) => {
2023
2023
  event.preventDefault();
2024
- const { onChange, formData, name } = this.props;
2024
+ const { onChange, formData } = this.props;
2025
2025
  const copiedFormData = { ...formData };
2026
2026
  (0, import_unset.default)(copiedFormData, key);
2027
- onChange(copiedFormData, [name]);
2027
+ onChange(copiedFormData, []);
2028
2028
  };
2029
2029
  };
2030
2030
  /** Computes the next available key name from the `preferredKey`, indexing through the already existing keys until one
@@ -2103,7 +2103,7 @@ var ObjectField = class extends import_react8.Component {
2103
2103
  if (!(schema.additionalProperties || schema.patternProperties)) {
2104
2104
  return;
2105
2105
  }
2106
- const { formData, name, onChange, registry } = this.props;
2106
+ const { formData, onChange, registry } = this.props;
2107
2107
  const newFormData = { ...formData };
2108
2108
  const newKey = this.getAvailableKey("newKey", newFormData);
2109
2109
  if (schema.patternProperties) {
@@ -2131,7 +2131,7 @@ var ObjectField = class extends import_react8.Component {
2131
2131
  const newValue = constValue ?? defaultValue ?? this.getDefaultValue(type);
2132
2132
  (0, import_set4.default)(newFormData, newKey, newValue);
2133
2133
  }
2134
- onChange(newFormData, [name]);
2134
+ onChange(newFormData, []);
2135
2135
  };
2136
2136
  /** Renders the `ObjectField` from the given props
2137
2137
  */
@@ -4921,7 +4921,7 @@ var Form = class extends import_react24.Component {
4921
4921
  /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
4922
4922
  _SchemaField,
4923
4923
  {
4924
- name: idPrefix,
4924
+ name: "",
4925
4925
  schema,
4926
4926
  uiSchema,
4927
4927
  errorSchema,