Skip to content

Commit 100d0b5

Browse files
committed
chore: back of container
1 parent 85007a4 commit 100d0b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stickyScrollBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ const StickyScrollBar: React.ForwardRefRenderFunction<unknown, StickyScrollBarPr
171171
window.removeEventListener(SCROLL_EVENT, checkScrollBarVisible);
172172
container.removeEventListener(SCROLL_EVENT, checkScrollBarVisible);
173173
};
174-
}, [scrollBodyRef.current]);
174+
}, [container]);
175175

176176
React.useEffect(() => {
177177
if (!scrollState.isHiddenScrollBar) {

0 commit comments

Comments
 (0)