Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
client: Dismiss tooltip if clicking a link inside it
Elian Doran607af4b8fc1d
diff --git a/src/public/app/services/note_tooltip.js b/src/public/app/services/note_tooltip.jsindex be6214be94..d462b788b2 100644--- a/src/public/app/services/note_tooltip.js+++ b/src/public/app/services/note_tooltip.js@@ -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,