Skip to content

Commit

Permalink
Don't trigger tooltip mouse over events for popovers
Browse files Browse the repository at this point in the history
  • Loading branch information
ghsteff committed Feb 9, 2024
1 parent e59b61d commit fa6eb3f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/layers/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,14 @@ export const Tooltip: FC<Partial<TooltipProps>> = ({
return (
<motion.div
onMouseOver={() => {
clearTimeout(timeout.current);
if (!isPopover) {
clearTimeout(timeout.current);
}
}}
onMouseLeave={() => {
handleClose();
if (!isPopover) {
handleClose();
}
}}
className={classNames(css.tooltip, className)}
initial={{
Expand Down

0 comments on commit fa6eb3f

Please sign in to comment.