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 switching from unit to keyword type - should immediately provide suggestions

Oleg Isonen4ddf57c0a9df
diff --git a/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.tsx b/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.tsx
index f842fcb207..de9f342f7b 100644
--- a/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.tsx
+++ b/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.tsx
@@ -176,7 +176,7 @@ export const CssValueInput = ({
getItemProps,
isOpen,
} = useCombobox<StyleValue>({
- items: value.type === "keyword" ? keywords : defaultKeywords,
+ items: keywords,
value,
// @todo if we String() the value, it leads to an infinite loop
itemToString: (item) => (item === null ? "" : String(item.value)),