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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
fix: Сombobox if the menu is opened using the up or down arrows, we want to display all items without applying any filters (#4311)
Ivan Starkovc9ce12c77b95
diff --git a/packages/design-system/src/components/combobox.tsx b/packages/design-system/src/components/combobox.tsxindex 920caaaf7c..4af2f52e9e 100644--- a/packages/design-system/src/components/combobox.tsx+++ b/packages/design-system/src/components/combobox.tsx@@ -298,6 +298,19 @@ export const useCombobox = <Item,>({return;}+ // If the menu is opened using the up or down arrows, we want to display all items without applying any filters.+ if (+ isOpen &&+ (type === comboboxStateChangeTypes.InputKeyDownArrowDown ||+ type === comboboxStateChangeTypes.InputKeyDownArrowUp)+ ) {+ const matchedItems = getItems();+ setMatchedItems(matchedItems);+ setIsOpen(matchedItems.length > 0);++ return;+ }+if (isOpen) {itemsCache.current = getItems();const matchedItems = match(