mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-17 14:29:48 +02:00
Fix a flowchat selection issue
This commit is contained in:
@@ -248,7 +248,7 @@ export const getClasses = function () {
|
|||||||
|
|
||||||
const setupToolTips = function (element) {
|
const setupToolTips = function (element) {
|
||||||
let tooltipElem = d3.select('.mermaidTooltip')
|
let tooltipElem = d3.select('.mermaidTooltip')
|
||||||
if (tooltipElem[0][0] === null) {
|
if ((tooltipElem._groups || tooltipElem)[0][0] === null) {
|
||||||
tooltipElem = d3.select('body')
|
tooltipElem = d3.select('body')
|
||||||
.append('div')
|
.append('div')
|
||||||
.attr('class', 'mermaidTooltip')
|
.attr('class', 'mermaidTooltip')
|
||||||
|
Reference in New Issue
Block a user