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: revert combobox defaultHighlightedIndex to -1 (#5586)

Oleg Isonend057a707c70c
diff --git a/packages/design-system/src/components/combobox.tsx b/packages/design-system/src/components/combobox.tsx
index 62b2084f2a..45e0a85e49 100644
--- a/packages/design-system/src/components/combobox.tsx
+++ b/packages/design-system/src/components/combobox.tsx
@@ -268,7 +268,7 @@ export const useCombobox = <Item,>({
onItemHighlight,
stateReducer = (_state, { changes }) => changes,
match = defaultMatch,
- defaultHighlightedIndex = 0,
+ defaultHighlightedIndex = -1,
...rest
}: UseComboboxProps<Item>) => {
const [isOpen, setIsOpen] = useState(false);