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.

don't pass false as a suffix

Oleg Isonen44a3f6774442
diff --git a/packages/design-system/src/components/search-field.tsx b/packages/design-system/src/components/search-field.tsx
index 20f1c5a817..5459eacd0c 100644
--- a/packages/design-system/src/components/search-field.tsx
+++ b/packages/design-system/src/components/search-field.tsx
@@ -33,7 +33,7 @@ const SearchFieldBase: ForwardRefRenderFunction<
</IconButton>
}
suffix={
- value.length > 0 && (
+ value.length > 0 ? (
<IconButton
aria-label="Reset search"
title="Reset search"
@@ -46,7 +46,7 @@ const SearchFieldBase: ForwardRefRenderFunction<
>
<Cross2Icon />
</IconButton>
- )
+ ) : null
}
onChange={(event) => {
setValue(event.target.value);