File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -516,7 +516,7 @@ const Tooltip = ({
516
516
const enabledEvents : { event : string ; listener : ( event ?: Event ) => void } [ ] = [ ]
517
517
518
518
const handleClickOpenTooltipAnchor = ( event ?: Event ) => {
519
- if ( show && event ?. target === activeAnchor ) {
519
+ if ( show && event ?. target ?. contains ( activeAnchor ) ) {
520
520
/**
521
521
* ignore clicking the anchor that was used to open the tooltip.
522
522
* this avoids conflict with the click close event.
@@ -526,7 +526,7 @@ const Tooltip = ({
526
526
handleShowTooltip ( event )
527
527
}
528
528
const handleClickCloseTooltipAnchor = ( event ?: Event ) => {
529
- if ( ! show || event ?. target !== activeAnchor ) {
529
+ if ( ! show || ! event ?. target ?. contains ( activeAnchor ) ) {
530
530
/**
531
531
* ignore clicking the anchor that was NOT used to open the tooltip.
532
532
* this avoids closing the tooltip when clicking on a
You can’t perform that action at this time.
0 commit comments