reset scroll position on list page change

This commit is contained in:
jeffvli
2025-10-23 00:50:24 -07:00
parent dae04e2aeb
commit 34dc917271
6 changed files with 37 additions and 2 deletions
@@ -52,7 +52,13 @@ export const SongListPaginatedGrid = forwardRef<any, SongListPaginatedGridProps>
pageCount={pageCount}
totalItemCount={totalItemCount}
>
<ItemGridList data={data || []} gap={gap} itemType={LibraryItem.SONG} ref={ref} />
<ItemGridList
currentPage={currentPage}
data={data || []}
gap={gap}
itemType={LibraryItem.SONG}
ref={ref}
/>
</ItemListWithPagination>
);
},
@@ -68,6 +68,7 @@ export const SongListPaginatedTable = forwardRef<any, SongListPaginatedTableProp
<ItemTableList
CellComponent={ItemTableListColumn}
columns={columns}
currentPage={currentPage}
data={data || []}
enableAlternateRowColors={enableAlternateRowColors}
enableHorizontalBorders={enableHorizontalBorders}