Skip to content

Commit

Permalink
tableV2: small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean Gaudiau committed Feb 14, 2022
1 parent 1107871 commit 40bb6d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/tablev2/SingleSelectableContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export function SingleSelectableContent({
visibleStartIndex - visibleStopIndex <= overscanStopIndex,
);
if (
overscanStopIndex > rows.length - 1 - onBottomOffset &&
overscanStopIndex >= rows.length - 1 - onBottomOffset &&
typeof onBottom === 'function'
) {
onBottom(rows.length);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/tablev2/Tablev2.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export type TableProps = {
getRowId?: getRowId,
sortTypes?: { [key: string]: SortType },
globalFilter?: string,
onBottom?: (rowLength: Number) => void,
onBottom?: (rowLength: number) => void,
onBottomOffset?: number,
};

Expand Down

0 comments on commit 40bb6d3

Please sign in to comment.