mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
client: Dismiss tooltip if clicking a link inside it
This commit is contained in:
parent
08060abe76
commit
607af4b8fc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user