Skip to content

[Bug] Tooltips do not work with webcomponents #5260

@jogibear9988

Description

@jogibear9988

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions