@elementor/editor-editing-panel 4.0.0-648 → 4.0.0-649

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
@@ -2211,10 +2211,10 @@ var createTopLevelObjectType = ({ schema }) => {
2211
2211
 
2212
2212
  // src/controls-registry/settings-field.tsx
2213
2213
  var HISTORY_DEBOUNCE_WAIT2 = 800;
2214
- var getElementSettigsWithDefaults = (propsSchema, elementSettings) => {
2214
+ var getElementSettingsWithDefaults = (propsSchema, elementSettings) => {
2215
2215
  const elementSettingsWithDefaults = { ...elementSettings };
2216
2216
  Object.keys(propsSchema).forEach((key) => {
2217
- if (!(key in elementSettingsWithDefaults)) {
2217
+ if (!(key in elementSettingsWithDefaults) || elementSettingsWithDefaults[key] === null) {
2218
2218
  if (propsSchema[key].default !== null) {
2219
2219
  elementSettingsWithDefaults[key] = propsSchema[key].default;
2220
2220
  }
@@ -2223,7 +2223,7 @@ var getElementSettigsWithDefaults = (propsSchema, elementSettings) => {
2223
2223
  return elementSettingsWithDefaults;
2224
2224
  };
2225
2225
  var extractDependencyEffect = (bind, propsSchema, currentElementSettings) => {
2226
- const elementSettingsForDepCheck = getElementSettigsWithDefaults(propsSchema, currentElementSettings);
2226
+ const elementSettingsForDepCheck = getElementSettingsWithDefaults(propsSchema, currentElementSettings);
2227
2227
  const propType = propsSchema[bind];
2228
2228
  const depCheck = (0, import_editor_props6.isDependencyMet)(propType?.dependencies, elementSettingsForDepCheck);
2229
2229
  const isHidden = !depCheck.isMet && !(0, import_editor_props6.isDependency)(depCheck.failingDependencies[0]) && depCheck.failingDependencies[0]?.effect === "hide";