This commit is contained in:
Sidharth Vinod
2023-02-14 10:56:16 +05:30
parent e1710fddd9
commit 10e6c92766
6 changed files with 75 additions and 82 deletions

View File

@@ -342,7 +342,8 @@ export const relationType = {
};
const setupToolTips = function (element: Element) {
let tooltipElem: Selection<HTMLDivElement, unknown, HTMLElement, unknown> = select('.mermaidTooltip');
let tooltipElem: Selection<HTMLDivElement, unknown, HTMLElement, unknown> =
select('.mermaidTooltip');
// @ts-ignore - _groups is a dynamic property
if ((tooltipElem._groups || tooltipElem)[0][0] === null) {
tooltipElem = select('body').append('div').attr('class', 'mermaidTooltip').style('opacity', 0);