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

Context menu is everywhere #579

Open
dvangonen opened this issue Feb 11, 2025 · 2 comments
Open

Context menu is everywhere #579

dvangonen opened this issue Feb 11, 2025 · 2 comments

Comments

@dvangonen
Copy link

You can just go to demo, focus any editable input outside of editor and trigger context menu.
You will see editor's context menu instead of default browser's menu.

Image

It's very annoying, because editor adds its listeners to the body.
So, you can actually check it on codingame:

Image

@CGNonofr
Copy link
Contributor

Oh it's interesting :) thanks for the report!

the menu still work properly though

@CGNonofr
Copy link
Contributor

CGNonofr commented Feb 11, 2025

The listener is added to the body by default, but the initialize method takes a second parameter that allow to set the workbench root element. The only solution I see is to set the element to be as close as possible to your editors

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