Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

nit

Sultan27cf40f85eda
diff --git a/apps/designer/app/designer/features/style-panel/controls/text/text-control.tsx b/apps/designer/app/designer/features/style-panel/controls/text/text-control.tsx
index 30961a3e63..7ddc8ecb45 100644
--- a/apps/designer/app/designer/features/style-panel/controls/text/text-control.tsx
+++ b/apps/designer/app/designer/features/style-panel/controls/text/text-control.tsx
@@ -129,7 +129,6 @@ export const TextControl = ({
}}
onKeyDown={(event) => {
const target = event.target as HTMLInputElement;
- if (isExpanded(target)) return inputProps?.onKeyDown?.(event);
if (
event.code === "Enter" &&
String(value.value) !== target.value
@@ -138,6 +137,7 @@ export const TextControl = ({
const number = parseFloat(target.value);
if (!isNaN(number)) target.value = String(number);
}
+ if (isExpanded(target)) return inputProps?.onKeyDown?.(event);
if (value.type !== "unit")
return inputProps?.onKeyDown?.(event);
if (!["ArrowUp", "ArrowDown"].includes(event.code)) return;