Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add required paginationLabel prop to TablePagination component's…
Browse files Browse the repository at this point in the history
… use of Pagination

This commit fixes a bug with the TablePagination component. This component renders the Pagination component without a paginationLabel prop, which is a required prop of the Pagination component. This commit adds a paginationLabel='table pagination' prop, which matches the prop passed to the PagintionComponent by the TablePaginationMinimal component.
MichaelRoytman committed Jan 23, 2025
1 parent fc9a511 commit cc4f734
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/DataTable/TablePagination.jsx
Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@ function TablePagination() {
currentPage={pageIndex + 1}
onPageSelect={(pageNum) => gotoPage(pageNum - 1)}
pageCount={pageCount}
paginationLabel="table pagination"
icons={{
leftIcon: null,
rightIcon: null,

0 comments on commit cc4f734

Please sign in to comment.