Skip to content

Commit

Permalink
fix: useRect removal
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed Sep 16, 2022
1 parent dd34352 commit fb23eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useRect.ts
Expand Up @@ -40,7 +40,7 @@ export default function useRect(
document.addEventListener('scroll', cb, true)

return () => {
document.removeEventListener('scroll', cb)
document.removeEventListener('scroll', cb, true)
}
}, [element, enabled, measure, rerender])

Expand Down

0 comments on commit fb23eb3

Please sign in to comment.