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.

fix typo

Oleg Isonen3179ff8fa3cb
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 6e255a0877..e7d5cb011c 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
@@ -18,12 +18,12 @@ export const TextControl = ({
const setValue = setProperty(styleConfig.property);
- const [currerntValue, setCurrentValue] = useState<StyleValue>();
+ const [currentValue, setCurrentValue] = useState<StyleValue>();
return (
<CssValueInput
property={styleConfig.property}
- value={currerntValue ?? value}
+ value={currentValue ?? value}
keywords={styleConfig.items.map((item) => ({
type: "keyword",
value: item.name,
@@ -33,7 +33,7 @@ export const TextControl = ({
setValue(toValue(styleValue), { isEphemeral: true });
}}
onItemHighlight={(styleValue) => {
- const nextValue = styleValue ?? currerntValue ?? value;
+ const nextValue = styleValue ?? currentValue ?? value;
if (nextValue) {
setValue(toValue(nextValue), {
isEphemeral: true,