Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
linxianxi committed Feb 7, 2024
1 parent 19cac05 commit 765f048
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stickyScrollBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ interface StickyScrollBarProps {
}

const StickyScrollBar: React.ForwardRefRenderFunction<unknown, StickyScrollBarProps> = (
{ scrollBodyRef, onScroll, offsetScroll, container, data },
{ scrollBodyRef, onScroll, offsetScroll, container },
ref,
) => {
const prefixCls = useContext(TableContext, 'prefixCls');
const bodyScrollWidth = scrollBodyRef.current?.scrollWidth || 0;
const bodyScrollWidth = scrollBodyRef.current.scrollWidth || 0;
const bodyWidth = scrollBodyRef.current?.clientWidth || 0;
const scrollBarWidth = bodyScrollWidth && bodyWidth * (bodyWidth / bodyScrollWidth);

Expand Down

0 comments on commit 765f048

Please sign in to comment.