N°5138 N°4425 Fix not being able to click on hyperlinks in tooltips

This commit is contained in:
Stephen Abello
2022-08-08 12:00:38 +02:00
parent b4880beb5b
commit 8e840d4529

View File

@@ -819,8 +819,10 @@ const CombodoTooltip = {
oOptions['content'] = sContent;
// Interaction (selection, click, ...) have to be enabled manually
// Important: When set to true, if "data-tooltip-append-to" is not specified, tooltip will be append to the parent element instead of the body
const bInteractive = oElem.attr('data-tooltip-interaction-enabled') === 'true';
// Important: When set to true, if "data-tooltip-append-to" is not specified, tooltip will be appended to the parent element instead of the body
// Defaults to true if it contains hyperlink
let bDefaultInteractive = (bEnableHTML && sContent.indexOf("<a ") > -1)
const bInteractive = oElem.attr('data-tooltip-interaction-enabled') !== undefined ? oElem.attr('data-tooltip-interaction-enabled') === 'true' : bDefaultInteractive;
oOptions['interactive'] = bInteractive;
// Element to append the tooltip to