Skip to content

Commit

Permalink
Infinite loading trigger element only added after last content row
Browse files Browse the repository at this point in the history
  • Loading branch information
arminmeh committed Sep 12, 2024
1 parent 86e82df commit b0b0f59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ export const useGridVirtualScroller = () => {
if (panel) {
rows.push(panel);
}
if (isLastVisible) {
if (params.position === undefined && isLastVisibleInSection) {
rows.push(apiRef.current.getInfiniteLoadingTriggerElement?.({ lastRowId: id }));
}
});
Expand Down

0 comments on commit b0b0f59

Please sign in to comment.