Skip to content

Commit

Permalink
Merge pull request #34788 from dukenv0307/fix/34297
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisl authored Jan 23, 2024
2 parents 74f1163 + ccbab1c commit 7f58856
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/PopoverProvider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ function PopoverContextProvider(props: PopoverContextProps) {

closePopover();
};
document.addEventListener('scroll', listener, true);
document.addEventListener('wheel', listener, true);
return () => {
document.removeEventListener('scroll', listener, true);
document.removeEventListener('wheel', listener, true);
};
}, [closePopover]);

Expand Down

0 comments on commit 7f58856

Please sign in to comment.