@elementor/editor-controls 4.1.0-791 → 4.1.0-792

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
@@ -3759,7 +3759,7 @@ var LinkedDimensionsControl = ({ label, isSiteRtl = false, min }) => {
3759
3759
  const linkedLabel = (0, import_i18n20.__)("Link %s", "elementor").replace("%s", tooltipLabel);
3760
3760
  const unlinkedLabel = (0, import_i18n20.__)("Unlink %s", "elementor").replace("%s", tooltipLabel);
3761
3761
  const disabled = sizeDisabled || dimensionsDisabled;
3762
- const effectiveDimensionsPlaceholder = dimensionsPlaceholder ?? (import_editor_props22.sizePropTypeUtil.extract(masterPlaceholder) ? {
3762
+ const effectiveDimensionsPlaceholder = dimensionsPlaceholder ?? (!isLinked ? {
3763
3763
  "block-start": masterPlaceholder,
3764
3764
  "block-end": masterPlaceholder,
3765
3765
  "inline-start": masterPlaceholder,
@@ -4759,7 +4759,7 @@ var GapControl = ({ label }) => {
4759
4759
  const disabled = sizeDisabled || directionDisabled;
4760
4760
  const propProviderProps = {
4761
4761
  propType,
4762
- value: directionValue,
4762
+ value: directionValue ?? (!isLinked ? { row: masterPlaceholder, column: masterPlaceholder } : null),
4763
4763
  setValue: (directions) => {
4764
4764
  const entries = Object.entries(directions);
4765
4765
  const filtered = entries.filter(([, value]) => Boolean(value));