-
Notifications
You must be signed in to change notification settings - Fork 33.3k
Fix monaco-edit color picker not working inside shadow dom (195606) #195608
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
base: main
Are you sure you want to change the base?
Conversation
…adow dom Added an additional check in the mousemove event to fix _onMouseLeave triggering when Monaco Editor is inside a Shadow DOM. Previously, _onMouseLeave would trigger even if the mouse was still inside the editor, due to event retargeting to the web component itself. This check resolves the issue with the color picker always closing.
Hi there is an error in the CI that says:
|
Hi : ) I made some changes and the type errors should be solved now |
Hi there, monaco devs did not reviwed PR yet, i am facing this issue how can i solve it for now ? @mak1A4 |
I can only tell you how I fixed it for now, I'm using the esm version of monaco-editor and I just patched the File |
Hey @hediet, it appears the author of this PR would like a review from the person responsible for developing the monaco-editor. |
Added an additional check in the mousemove event to fix _onMouseLeave triggering when Monaco Editor is inside a Shadow DOM. Previously, _onMouseLeave would trigger even if the mouse was still inside the editor, due to event retargeting to the web component itself. This check resolves the issue with the color picker always closing.
Issue Link: #195606