Skip to content

Commit

Permalink
docs: update source comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieljablonski committed Dec 27, 2023
1 parent 985e1d4 commit 7b83b18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,8 @@ const Tooltip = ({
const handleClickCloseTooltipAnchor = (event?: Event) => {
if (!show || event?.target !== activeAnchor) {
/**
* same reasoning as above, opposite logic.
* ignore clicking the anchor that was NOT used to open the tooltip.
* this avoids closing the tooltip when clicking on a new anchor with the tooltip already open.
*/
return
}
Expand Down

0 comments on commit 7b83b18

Please sign in to comment.