diff --git a/docs/frontend_api/FrontendScriptApi.html b/docs/frontend_api/FrontendScriptApi.html
index c2704ceac..edecc2636 100644
--- a/docs/frontend_api/FrontendScriptApi.html
+++ b/docs/frontend_api/FrontendScriptApi.html
@@ -1452,7 +1452,7 @@
-
getActiveNotePath() → {string}
+ getActiveNotePath() → {Promise.<string>}
@@ -1538,7 +1538,7 @@
-string
+Promise.<string>
diff --git a/docs/frontend_api/services_frontend_script_api.js.html b/docs/frontend_api/services_frontend_script_api.js.html
index eac242c9f..39edef43a 100644
--- a/docs/frontend_api/services_frontend_script_api.js.html
+++ b/docs/frontend_api/services_frontend_script_api.js.html
@@ -264,7 +264,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null) {
/**
* @method
- * @returns {string} returns note path of active note
+ * @returns {Promise<string>} returns note path of active note
*/
this.getActiveNotePath = treeService.getActiveNotePath;
diff --git a/src/public/javascripts/services/note_tooltip.js b/src/public/javascripts/services/note_tooltip.js
index cffa0a2db..ac7da96c5 100644
--- a/src/public/javascripts/services/note_tooltip.js
+++ b/src/public/javascripts/services/note_tooltip.js
@@ -7,8 +7,8 @@ function setupGlobalTooltip() {
$(document).on("mouseenter", "a", mouseEnterHandler);
$(document).on("mouseleave", "a", mouseLeaveHandler);
- // close any tooltip after click, this fixes the problem that sometimes tooltips remained on the screen
- //$(document).on("click", () => $('.tooltip').remove());
+ // close any note tooltip after click, this fixes the problem that sometimes tooltips remained on the screen
+ $(document).on("click", () => $('.note-tooltip').remove());
}
function setupElementTooltip($el) {
@@ -58,7 +58,8 @@ async function mouseEnterHandler() {
trigger: 'manual',
boundary: 'window',
title: html,
- html: true
+ html: true,
+ template: ''
});
$(this).tooltip('show');