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.

Update apps/designer/app/designer/features/props-panel/props-panel.tsx

Oleg Isonenf228049f72f0
diff --git a/apps/designer/app/designer/features/props-panel/props-panel.tsx b/apps/designer/app/designer/features/props-panel/props-panel.tsx
index f6b1228344..cbc29e8c58 100644
--- a/apps/designer/app/designer/features/props-panel/props-panel.tsx
+++ b/apps/designer/app/designer/features/props-panel/props-panel.tsx
@@ -50,7 +50,11 @@ const Property = ({
onChange(id, "prop", event.target.value);
}}
/>
- {!isInvalidProp ? (
+ {isInvalidProp ? (
+ <Tooltip content={`Invalid property name: ${prop}`}>
+ <ExclamationTriangleIcon width={12} height={12} />
+ </Tooltip>
+ ) : (
<Control
type={type}
required={required}
@@ -59,10 +63,6 @@ const Property = ({
value={value}
onChange={(value: UserProp["value"]) => onChange(id, "value", value)}
/>
- ) : (
- <Tooltip content={`Invalid property name: ${prop}`}>
- <ExclamationTriangleIcon width={12} height={12} />
- </Tooltip>
)}
<Button
ghost