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 8e386c3 commit e54ca93Copy full SHA for e54ca93
src/Table.tsx
@@ -486,6 +486,10 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
486
487
if (currentTarget) {
488
const { scrollWidth, clientWidth } = currentTarget;
489
+ // There is no space to scroll
490
+ if (scrollWidth === clientWidth) {
491
+ return;
492
+ }
493
if (isRTL) {
494
setPingedLeft(-mergedScrollLeft < scrollWidth - clientWidth);
495
setPingedRight(-mergedScrollLeft > 0);
0 commit comments