Skip to content

Commit

Permalink
[JENKINS-72744] remove tooltip when widget is refreshed (#9201)
Browse files Browse the repository at this point in the history
[JENKINS-72744] remove tooltip in widget refresh

Attach the tooltip to the parent element instead of the document body.
When a widget is refreshed, the elements are deleted. But the tooltip
stays when it is added to the body and thus will never be able to
receive an event when the mouse is moved out.
By attaching it to the parent, when the widget is refreshed and the
content is remobed this will automatically also remove the tooltip html
elements.
  • Loading branch information
mawinter69 committed May 4, 2024
1 parent cd5b696 commit 884f7e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion war/src/main/js/components/tooltips/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const TOOLTIP_BASE = {
arrow: false,
theme: "tooltip",
animation: "tooltip",
appendTo: document.body,
appendTo: "parent",
};

/**
Expand Down

0 comments on commit 884f7e5

Please sign in to comment.