Skip to content

Commit a9723f4

Browse files
committed
Ensure not ApexChart context before removing active state
1 parent cb88426 commit a9723f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/tooltip/Tooltip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ export default class Tooltip {
612612

613613
w.globals.dom.baseEl.classList.add('apexcharts-tooltip-active')
614614
opt.tooltipEl.classList.add('apexcharts-active')
615-
} else if (e.type === 'mouseout' || e.type === 'touchend') {
615+
} else if (!w.globals.dom.baseEl.contains(e.relatedTarget) && (e.type === 'mouseout' || e.type === 'touchend')) {
616616
this.handleMouseOut(opt)
617617
}
618618
}

0 commit comments

Comments
 (0)