MenuItem
"mixed" checked state
#8251
-
Ideally there'd be some built-in convention for nested multi-selectable menu items via
In the meantime, I tried to build something myself but ran into a strange issue. I was expecting to be able to use |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Looks like the Codesandbox is private. As for MenuSection having anything interactive inside of it, that's not allowed with Aria. https://w3c.github.io/aria/#menu It looks like a MenuItem could have this. Unfortunately, we have not currently implemented it. We could consider it, but it might be a fair amount of work to add it to our SelectableCollection implementation. I think it'd be best to follow the instructions here https://react-spectrum.adobe.com/contribute.html#feature-requests |
Beta Was this translation helpful? Give feedback.
-
🤦♂️ please try again. |
Beta Was this translation helpful? Give feedback.
O, this has more to do with where context is available. Here's a quick sketch of what I mean https://codesandbox.io/p/sandbox/rac-menu-state-forked-n4qgnr?file=%2Fsrc%2FApp.tsx%3A69%2C10
It's a limitation of our collections that you can only access context inside the collection component. I'm not sure what I messed up with the Section, but hopefully this gets you going again.