-
Notifications
You must be signed in to change notification settings - Fork 4k
[Bug] Tooltips do not work with webcomponents #5260
Copy link
Copy link
Open
Description
Reproducible in vscode.dev or in VS Code Desktop?
- Not reproducible in vscode.dev or VS Code Desktop
Reproducible in the monaco editor playground?
- Not 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels