Skip to content

Commit

Permalink
fix: Rolling scrollbar error message not cleared for scheduled tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
tiankongcfq authored Jun 18, 2024
1 parent 1e919ee commit ab73976
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ScrollBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ const ScrollBar = React.forwardRef<ScrollBarRef, ScrollBarProps>((props, ref) =>

React.useEffect(() => {
delayHidden();
return () => {
clearTimeout(visibleTimeoutRef.current);
};
}, [scrollOffset]);

// ====================== Imperative ======================
Expand Down

0 comments on commit ab73976

Please sign in to comment.