File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -537,6 +537,9 @@ export default class Tooltip {
537
537
this . tConfig . shared ) ||
538
538
( w . globals . comboCharts && this . tooltipUtil . hasBars ( ) )
539
539
540
+ let isChartContextTarget = w . globals . dom . baseEl . contains ( e . relatedTarget )
541
+ let isInteractionEnd = ( e . type === 'mouseout' || e . type === 'touchend' )
542
+
540
543
if (
541
544
e . type === 'mousemove' ||
542
545
e . type === 'touchmove' ||
@@ -612,7 +615,7 @@ export default class Tooltip {
612
615
613
616
w . globals . dom . baseEl . classList . add ( 'apexcharts-tooltip-active' )
614
617
opt . tooltipEl . classList . add ( 'apexcharts-active' )
615
- } else if ( ! w . globals . dom . baseEl . contains ( e . relatedTarget ) && ( e . type === 'mouseout' || e . type === 'touchend' ) ) {
618
+ } else if ( ! isChartContextTarget && isInteractionEnd ) {
616
619
this . handleMouseOut ( opt )
617
620
}
618
621
}
You can’t perform that action at this time.
0 commit comments