diff --git a/web/src/tippyjs.js b/web/src/tippyjs.js index 445d94794b..2bd2654b99 100644 --- a/web/src/tippyjs.js +++ b/web/src/tippyjs.js @@ -171,8 +171,10 @@ export function initialize() { onShow(instance) { // Handle dynamic "starred messages" and "edit" widgets. const $elem = $(instance.reference); + const tippy_content = $elem.attr("data-tippy-content"); const $template = $("#" + $elem.attr("data-tooltip-template-id")); - instance.setContent(parse_html($template.html())); + + instance.setContent(tippy_content ?? parse_html($template.html())); }, });