client: Dismiss tooltip if clicking a link inside it

This commit is contained in:
Elian Doran 2024-08-31 23:58:26 +03:00
parent 08060abe76
commit 607af4b8fc
No known key found for this signature in database

View File

@ -87,6 +87,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,
// click on links within tooltip etc. without tooltip disappearing