Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeshakmaz committed Mar 26, 2021
1 parent d362639 commit 48324a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gestalt/src/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export default function Table(props: Props): Node {
}, []);

useEffect(() => {
window.addEventListener('scroll', updateShadows);
document.addEventListener('scroll', updateShadows);
return () => {
window.removeEventListener('scroll', updateShadows);
document.removeEventListener('scroll', updateShadows);
};
}, [updateShadows]);

Expand Down

0 comments on commit 48324a4

Please sign in to comment.