Using the same Collection in multiple components #4722
Closed
Joonaspraks
started this conversation in
General
Replies: 1 comment
-
Thinking out loud, perhaps we could look into adding a unique identifier to each SelectionManager that would then be added a option's generated data-key along with its key here. That way the query selector used for focus would be scoped to the selection manager + collection pair rather than to the collection only. EDIT: |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I am constructing a multiselect in react-aria. I use the same Collection to both display Options in the ListBox and display the selected Options in a TagGroup. Because I am using the same Collection in both components I get overlapping focus events. For example, hovering on a selected ListBox Option sets focus on the matching Tag.
What are the approaches for this problem? I could override the keys for the TagGroup, but then I lose the out-of-the-box support for the Tag's onRemove capabilities.
There is a similar discussion here: #3785
Beta Was this translation helpful? Give feedback.
All reactions