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

browser context menu is appearing on the vue-context-menu #3

Open
chetbis opened this issue May 4, 2017 · 1 comment
Open

browser context menu is appearing on the vue-context-menu #3

chetbis opened this issue May 4, 2017 · 1 comment

Comments

@chetbis
Copy link

chetbis commented May 4, 2017

in index.vue in line no 5 instead of @contextmenu.stop it should be @contextmenu.prevent as it prevents browser native context menu from appearing on the vue-context-menu.

@vmaimone
Copy link
Owner

vmaimone commented Jul 2, 2017

While I understand what you mean, I don't believe this will do what you're expecting.

The menu trigger is wired up via the @context-menu event on some element external to vue-context-menu. For this reason, preventDefault needs to be called in userland.

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

No branches or pull requests

2 participants