Managing focus between search field and unique search results container #3941
Unanswered
binaryartifex
asked this question in
Q&A
Replies: 1 comment
-
It might be helpful if you put these in a codesandbox and include the link, so we can try it. Also, we have a useSearchAutocomplete hook in pre-release that might be a better fit. And does using a FocusScope help your use case? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Ive been at this for the last 6 hours and i think (hope) its my lack of understanding of react-aria thats contributing to this epic failure. Long story short as part of the requested design spec, i need to achieve the following -
At present ive implemented the search results to be within a typical popover, with the child of the popover being a typical tab list with each tab having an unordered list of anchor tabs. For the life of me I cannot switch focus between the search field and the overlaid search results. The tab ordering insists on continuing through the app header and focuses the menu buttons on the other side of the header. If i try to encapsulate the search and overlay result components, the focus doesn't work at all.
Each fleet item has only business specific props, wrapped in an anchor tag (which is wrapped in a li tag). Tabs, Items, Popovers and the Search field are all almost copy paste straight from the docs. It seems the capacity to navigate via keyboard between the search field and a popover element for the most part is not supported...unless ive missed something. any help is greatly appreciated.
Fleet Search Component
Tab List to be rendered with results
Beta Was this translation helpful? Give feedback.
All reactions