Skip to content

Commit

Permalink
Clear up tooltip timeouts on mouse leave (#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
akleiner2 committed Sep 14, 2020
1 parent 6593cbc commit 84a63b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tooltip/src/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ const Tooltip = memo(function Tooltip(props) {

const hide = () => {
setIsShown(false)
// Clean up any timeouts that may have been triggered from `showDelay`
clearTimeout(closeTimeout)
}

const handleHide = debounce(hide, hideDelay)
Expand Down

0 comments on commit 84a63b6

Please sign in to comment.