diff --git a/.changeset/chatty-seahorses-raise.md b/.changeset/chatty-seahorses-raise.md new file mode 100644 index 00000000000..2beed31bf6c --- /dev/null +++ b/.changeset/chatty-seahorses-raise.md @@ -0,0 +1,5 @@ +--- +'polaris.shopify.com': patch +--- + +Fixes an issue which caused the site search to re-open once dismissed. diff --git a/polaris.shopify.com/src/components/GlobalSearch/GlobalSearch.tsx b/polaris.shopify.com/src/components/GlobalSearch/GlobalSearch.tsx index da5aa18e566..ae4e685be0d 100644 --- a/polaris.shopify.com/src/components/GlobalSearch/GlobalSearch.tsx +++ b/polaris.shopify.com/src/components/GlobalSearch/GlobalSearch.tsx @@ -186,7 +186,7 @@ function GlobalSearch() { aria-controls="search-results" aria-expanded={searchResultsCount > 0} aria-activedescendant={currentItemId} - onKeyDown={handleKeyboardNavigation} + onKeyUp={handleKeyboardNavigation} autoComplete="off" autoCorrect="off" autoCapitalize="off"