Skip to content

Commit

Permalink
Be explicit about what state values influence the tooltip effect
Browse files Browse the repository at this point in the history
  • Loading branch information
kylesuss committed Jun 17, 2019
1 parent 87db8c9 commit cccadb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tooltip/WithTooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function WithTooltip({
// eslint-disable-next-line consistent-return
return () =>
clickableElements.forEach(element => element.removeEventListener('click', closeTooltip));
});
}, [isTooltipShown]);

return (
<TooltipTrigger
Expand Down

0 comments on commit cccadb0

Please sign in to comment.