Replies: 1 comment 2 replies
-
Aria does not allow interactive children in role=menuitem. I know the spec doesn't say presentation only, and it doesn't specify the allowed roles, that's because that's a little in flux right now. See these issues for more information: Instead, you'd want to use Autocomplete with GridList, but we don't have support for that yet. What you could do in the meantime though is make an input for filtering a gridlist and users would need to tab from the input to the gridlist in order to navigate it. |
Beta Was this translation helpful? Give feedback.
-
Hey! I implemented React Aria's command palette example, and I was wondering how the recommended way is to add one or more actions to a menu item and whether this is possible in the context of React Aria.
Ideally, I want to show a star icon button in the menu item so that users can star a particular menu item. Nesting this inside the menu item will make it inaccessible. If I were to position it absolutely, it would need to live outside the menu item, which React Aria doesn't allow because of the Menu composition pattern.
Beta Was this translation helpful? Give feedback.
All reactions