Skip to content

Hover message hides when trying to move the mouse to it using overflowWidgetsDomNode #2156

@pankajk07

Description

@pankajk07
  1. Go Monaco playground
  2. Add the code snippet attached below
  3. Hover over function name hello
  4. Move the mouse to the popover
  5. The popover disappears

Expectation:
The popover should not disappear when the mouse moves to it

monaco-editor version: 0.21.1
Browser: Chrome
OS: MacOS
Playground code that reproduces the issue:

monaco.editor.create(document.getElementById("container"), {
    language: "javascript",
    overflowWidgetsDomNode: document.querySelector('body'),
    fixedOverflowWidgets: true,
    value: `
/**
 * sample doc
 */
function hello() {
	alert('Hello world!');
}`
});
document.querySelector('body').classList.add('monaco-editor');

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-hover

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions