@elementor/editor-controls 4.3.0-1021 → 4.3.0-1022

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
@@ -5294,8 +5294,8 @@ var AspectRatioControl = createControl(({ label }) => {
5294
5294
  const isCustomValue = aspectRatioValue && !RATIO_OPTIONS.some((option) => option.value === aspectRatioValue);
5295
5295
  if (isCustomValue) {
5296
5296
  const [width, height] = aspectRatioValue.split("/");
5297
- setCustomWidth(width || "");
5298
- setCustomHeight(height || "");
5297
+ setCustomWidth(width.trim() || "");
5298
+ setCustomHeight(height.trim() || "");
5299
5299
  setSelectedValue(CUSTOM_RATIO);
5300
5300
  setIsCustom(true);
5301
5301
  } else {