Skip to content

Commit

Permalink
fix: πŸ› forceScroll error
Browse files Browse the repository at this point in the history
when ref change,forcescroll fall flat
  • Loading branch information
xingfu authored and xingfu committed Aug 26, 2022
1 parent 1839388 commit 839b483
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,9 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
target(scrollLeft);
} else if (target.scrollLeft !== scrollLeft) {
// eslint-disable-next-line no-param-reassign
target.scrollLeft = scrollLeft;
setTimeout(() => {
target.scrollLeft = scrollLeft;
}, 0);
}
}

Expand Down

0 comments on commit 839b483

Please sign in to comment.