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

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
@@ -5232,8 +5232,8 @@ var AspectRatioControl = createControl(({ label }) => {
5232
5232
  const isCustomValue = aspectRatioValue && !RATIO_OPTIONS.some((option) => option.value === aspectRatioValue);
5233
5233
  if (isCustomValue) {
5234
5234
  const [width, height] = aspectRatioValue.split("/");
5235
- setCustomWidth(width || "");
5236
- setCustomHeight(height || "");
5235
+ setCustomWidth(width.trim() || "");
5236
+ setCustomHeight(height.trim() || "");
5237
5237
  setSelectedValue(CUSTOM_RATIO);
5238
5238
  setIsCustom(true);
5239
5239
  } else {