@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.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -16
- package/src/controls/aspect-ratio-control.tsx +2 -2
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 {
|