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.

On blur should not activate the property name label showing that it has changed when the value hasn't changed

Sultand4cfa5dd8c7d
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 e7d5cb011c..618c1cb772 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
@@ -41,6 +41,9 @@ export const TextControl = ({
}
}}
onChangeComplete={(styleValue) => {
+ let prevValue = toValue(value);
+ let nextValue = toValue(styleValue);
+ if (prevValue === nextValue) return;
setCurrentValue(undefined);
setValue(toValue(styleValue));
}}