@elementor/editor-components 4.2.0-902 → 4.2.0-903

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
@@ -2230,7 +2230,6 @@ function OverrideControl({ overridableProp }) {
2230
2230
  return null;
2231
2231
  }
2232
2232
  const { propValue, baseValue: resolvedBaseValue } = resolveOverrideValues(
2233
- matchingOverride,
2234
2233
  overrideValue,
2235
2234
  resolvedOriginValues,
2236
2235
  propKey
@@ -2316,13 +2315,13 @@ function OverrideControl({ overridableProp }) {
2316
2315
  )
2317
2316
  );
2318
2317
  }
2319
- function resolveOverrideValues(matchingOverride, overrideValue, resolvedOriginValues, propKey) {
2318
+ function resolveOverrideValues(overrideValue, resolvedOriginValues, propKey) {
2320
2319
  const unwrappedSettings = unwrapOverridableSettings(resolvedOriginValues);
2321
2320
  const inheritedValue = unwrappedSettings[propKey] ?? null;
2322
2321
  const isInheritedDynamic = (0, import_editor_editing_panel3.isDynamicPropValue)(inheritedValue);
2323
- const shouldUseInheritedAsValue = isInheritedDynamic && !matchingOverride;
2322
+ const shouldUseInheritedAsValue = isInheritedDynamic && !overrideValue;
2324
2323
  const propValue = shouldUseInheritedAsValue ? inheritedValue : overrideValue;
2325
- const baseValue = matchingOverride || isInheritedDynamic ? null : inheritedValue;
2324
+ const baseValue = overrideValue || isInheritedDynamic ? null : inheritedValue;
2326
2325
  return { propValue, baseValue };
2327
2326
  }
2328
2327
  function getTempNewValueForDynamicProp(propType, propValue, newPropValue) {