We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 904d050 commit b7448dfCopy full SHA for b7448df
src/components/backToTop/backToTopControlled.tsx
@@ -61,7 +61,7 @@ const BackToTopControlledComponent = React.forwardRef(
61
button.style.bottom = `${newBottomPosition}px`;
62
const display = window.scrollY >= visibilityScrollOffset;
63
button.style.display = display ? 'flex' : 'none';
64
- }, [visibilityScrollOffset]);
+ }, [bottomPosition, stopElement, visibilityScrollOffset]);
65
66
React.useEffect(() => {
67
handleScrollListener();
0 commit comments