client: Dismiss tooltip if clicking a link inside it

pull/379/head
Elian Doran 2024-08-31 23:58:26 +07:00
parent 08060abe76
commit 607af4b8fc
No known key found for this signature in database
1 changed files with 5 additions and 0 deletions

@ -86,6 +86,11 @@ async function mouseEnterHandler() {
});
$(this).tooltip('show');
// Dismiss the tooltip immediately if a link was clicked inside the tooltip.
$(`.${tooltipClass} a`).on("click", (e) => {
$(this).tooltip('dispose');
});
// the purpose of the code below is to:
// - allow user to go from hovering the link to hovering the tooltip to be able to scroll,