You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When navigating through the starter store theme nav using the keyboard (tab key), the search bar dropdown menu doesn't go away when tabbing away from search and to the sign-in icon.
Screen.Recording.2023-10-18.at.4.04.28.PM.mov
Expected behavior
When a user tabs away from the search input, the search dropdown should hide.
Current behavior
See above.
Steps to reproduce
Using the tab key, navigate through the site header to/through the search bar and search dropdown
Continue tabbing to the sign-in icon
Observe that the search dropdown menu stays visible and makes it hard to see where focus is once you continue tabbing through the main site navigation menu
Possible Solution
In the SearchInput component, on line 109, add the following code to trigger the search dropdown to hide when focus is lost on search input child elements:
onBlur={(e) => {
if (!e.currentTarget.contains(e.relatedTarget)) {
setSearchDropdownVisible(false)
}
}}
Workspace
n/a Additional context
Add any other context, screenshots, or comments about the problem.
The text was updated successfully, but these errors were encountered:
Thanks for reporting it and offering your solution. 🌟
I'll create a task to address it. In the meantime, feel free to create a PR with your suggestion. Your contributions are always welcome! 😊
Describe the bug
When navigating through the starter store theme nav using the keyboard (tab key), the search bar dropdown menu doesn't go away when tabbing away from search and to the sign-in icon.
Screen.Recording.2023-10-18.at.4.04.28.PM.mov
Expected behavior
When a user tabs away from the search input, the search dropdown should hide.
Current behavior
See above.
Steps to reproduce
Possible Solution
In the SearchInput component, on line 109, add the following code to trigger the search dropdown to hide when focus is lost on search input child elements:
Workspace
n/a
Additional context
Add any other context, screenshots, or comments about the problem.
The text was updated successfully, but these errors were encountered: