attribute fixes

This commit is contained in:
zadam
2020-08-15 21:24:17 +02:00
parent 625483a8f2
commit a87b710626
4 changed files with 25 additions and 15 deletions

View File

@@ -45,7 +45,13 @@ async function mouseEnterHandler() {
const note = await treeCache.getNote(noteId);
const noteComplement = await treeCache.getNoteComplement(noteId);
const html = '<div class="note-tooltip-content">' + await renderTooltip(note, noteComplement) + '</div>';
const content = await renderTooltip(note, noteComplement);
if (utils.isHtmlEmpty(content)) {
return;
}
const html = '<div class="note-tooltip-content">' + content + '</div>';
// we need to check if we're still hovering over the element
// since the operation to get tooltip content was async, it is possible that