Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
No response
Monaco Editor Playground Code
Reproduction Steps
No response
Actual (Problematic) Behavior
in monaco-editor/esm/vs/editor/browser/controller/mouseHandler.js
following line (41) does not work with webcomponents:
if (!this.viewHelper.viewDomNode.contains(e.target)) {
if you change to
if (!this.viewHelper.viewDomNode.contains(e.composedPath()[0])) {
it will work
Expected Behavior
tooltips in webcomponents should work
Additional Context
No response
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
No response
Monaco Editor Playground Code
Reproduction Steps
No response
Actual (Problematic) Behavior
in monaco-editor/esm/vs/editor/browser/controller/mouseHandler.js
following line (41) does not work with webcomponents:
if you change to
it will work
Expected Behavior
tooltips in webcomponents should work
Additional Context
No response