Skip to content

Menu without button #975

Answered by SiTaggart
PabloFNK asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @PabloFNK, are you referring to the “fake reference” example on the material UI popper docs https://material-ui.com/components/popper/#faked-reference-object?

We don’t currently have any solution for this, mainly for accessibility reasons.

When showing a menu or non-modal dialog you must handle user focus, moving the user into the menu or dialog, and then returning the user back to the triggering element. This is why both the Menu and Popover are tied to having a trigger button.

There isn’t really a good solution right now for context menus (right click). On Windows you can press a keyboard shortcut, but there isn’t an equivalent on Mac. The trick is working out a way to trigger the me…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SiTaggart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants