Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu component - clicking outside the open menu should enable close menu (not only selecting a menuItem onClick action)) #548

Closed
marmid74 opened this issue Sep 8, 2020 · 2 comments · Fixed by #591
Assignees

Comments

@marmid74
Copy link

marmid74 commented Sep 8, 2020

Is your feature request related to a problem? Please describe.
If a user opens a menu, and decides not to select any of the menuItem options, she wants to close the menu. For example in material ui she can click anywhere on the screen and the open menu is closed.

Describe the solution you'd like
I would like the same feature as in material ui, that the menu closes if you click anywhere else but on the menuItems. No further actions are executed.

Additional context

Add any other context or screenshots about the feature request here.

@mimarz mimarz self-assigned this Sep 8, 2020
@mimarz
Copy link
Contributor

mimarz commented Sep 8, 2020

Thanks for requesting this feature. We'll have a look in the not to far away future :)

@oanylund
Copy link

oanylund commented Sep 8, 2020

That would be nice. I was about to post a bug on the Menu component relating to this.
When trying to get a ref to the Menu component to implement this feature i get a React.forwardRef error and the ref stays null.
Maybe worth it's own bug, but I haven't gotten around to reproduce the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants