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
[Feature Request] [VMenu] Ability to open the menu with a right-click event #9235
Comments
also can easily be done by |
ah that is great to know. |
You can use both right click and left click on the same button with @MajesticPotatoe 's suggestion above. Just use I found this helpful to have a 'default' one-click behaviour and a menu on right-click. |
I think having official support for a contextmenu (or auxclick) variant would be much better than remapping the click action to Currently, there is no support for oncontextmenu events outside the menu, so all the menus you open stay open, with high chance of overlap unless you build a higher-level watcher that closes any other menus if you open a new one, or use a single menu in a parent container that receives arguments from the underlying list items, which is a very different flow from regular v-menu usage. I think with a v-menu-context component, extended from v-menu with its own definition for |
Problem to solve
Currently the VMenu component can be opened either with a click-event (default) or on hover (configurable via a prop). A common use case (especially for large or "enterprise-class" applications) is to have a custom context menu which is invoked via a right-click. As things stand today, VMenu does not handle this out of the box.
Proposed solution
Create a new prop to VMenu called
open-on-right-click
oropen-on-contextmenu
(with a default value of false) which would behave the same asopen-on-hover
andopen-on-click
.This would also involve updating the ClickOutside directive to handle both the
onclick
as well as theoncontextmenu
events.The text was updated successfully, but these errors were encountered: