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

ContextMenu: Right clicking twice or at a different context menu causes browser context menu to show #2399

Open
AaronDewes opened this issue Oct 16, 2024 · 2 comments
Labels
bug Something isn't working v3 #1289

Comments

@AaronDewes
Copy link

Environment

  • Operating System: Linux
  • Node Version: v18.18.2
  • Nuxt Version: 3.13.2
  • CLI Version: 3.14.0
  • Nitro Version: 2.9.7
  • Package Manager: [email protected]
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Version

e6143e8

Reproduction

This issue can be seen in the official demo at https://ui3.nuxt.dev/components/context-menu, so I don't think a reproduction is necessary.

Description

When right clicking twice into the same "block", the browser context menu opens instead of the custom context menu. This also happens if multiple <UContextMenu> blocks are used on the same page, when right clicking into one, and then directly into another one (without clicking anywhere else in between) opens the default browser context menu.

v2 did not have the same behaviour, and this does not seem to happen in the Radix Vue demo.

Additional context

No response

Logs

No response

@AaronDewes AaronDewes added bug Something isn't working triage v3 #1289 labels Oct 16, 2024
@benjamincanac benjamincanac removed the triage label Oct 17, 2024 — with Volta.net
Copy link
Member

This is indeed not behaving like on Radix Vue but I can't seem to figure out why 🤔

@AaronDewes
Copy link
Author

I checked and it seems like no contextmenu event listener is being triggered at all at the second click, but I don't know why.

I'll check if I can find anything, but I'm not sure, as I don't know much about Radix Vue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v3 #1289
Projects
None yet
Development

No branches or pull requests

2 participants