@elementor/editor-controls 4.1.0-760 → 4.1.0-761

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.mjs CHANGED
@@ -6961,9 +6961,12 @@ var useUnitSync = ({ unit, setUnit, persistWhen }) => {
6961
6961
  setState(unit);
6962
6962
  }
6963
6963
  }, [unit]);
6964
+ const isExtendedUnit2 = (value) => {
6965
+ return Object.values(EXTENDED_UNITS).includes(value);
6966
+ };
6964
6967
  const setInternalValue = (newUnit) => {
6965
6968
  setState(newUnit);
6966
- if (persistWhen()) {
6969
+ if (isExtendedUnit2(newUnit) || persistWhen()) {
6967
6970
  setUnit(newUnit);
6968
6971
  }
6969
6972
  };
@@ -7354,9 +7357,10 @@ var resolveBoundPropValue = (value, boundPropPlaceholder, propPlaceholder) => {
7354
7357
  { candidate: boundPropPlaceholder, resolve: toUnitPlaceholder }
7355
7358
  ]);
7356
7359
  const placeholderSource = propPlaceholder ?? boundPropPlaceholder;
7360
+ const hasValue2 = Boolean(value);
7357
7361
  return {
7358
7362
  sizeValue,
7359
- placeholder: resolvePlaceholder(placeholderSource)
7363
+ placeholder: hasValue2 ? void 0 : resolvePlaceholder(placeholderSource)
7360
7364
  };
7361
7365
  };
7362
7366
  var toUnitPlaceholder = (v) => ({ ...v, size: "" });