Skip to content

Commit

Permalink
fix: native popover broken after tab switch (#818)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyn1998 authored May 18, 2024
1 parent 4be0e69 commit b7df0ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/ContentScripts/components/NativePopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ export const NativePopover = ({
leaveTimer = setTimeout(hidePopover, 200);
});

anchor[0].addEventListener('click', () => {
hidePopover();
});

$popoverContainer[0].addEventListener('mouseenter', () => {
leaveTimer && clearTimeout(leaveTimer);
});
Expand Down

0 comments on commit b7df0ea

Please sign in to comment.