Skip to content

Commit 7b83b18

Browse files
docs: update source comments
1 parent 985e1d4 commit 7b83b18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Tooltip/Tooltip.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,8 @@ const Tooltip = ({
489489
const handleClickCloseTooltipAnchor = (event?: Event) => {
490490
if (!show || event?.target !== activeAnchor) {
491491
/**
492-
* same reasoning as above, opposite logic.
492+
* ignore clicking the anchor that was NOT used to open the tooltip.
493+
* this avoids closing the tooltip when clicking on a new anchor with the tooltip already open.
493494
*/
494495
return
495496
}

0 commit comments

Comments
 (0)