From a6e9242fabe4fb7c781a0d74102a3fe21ec460d6 Mon Sep 17 00:00:00 2001 From: Antoine SUBRA <92506465+subraAntoine@users.noreply.github.com> Date: Thu, 18 Jul 2024 15:11:11 +0200 Subject: [PATCH] Fix: Table pagination (#200) --- packages/haring-react-table/src/Components/Table/Table.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/haring-react-table/src/Components/Table/Table.tsx b/packages/haring-react-table/src/Components/Table/Table.tsx index 2870af22..efdba565 100644 --- a/packages/haring-react-table/src/Components/Table/Table.tsx +++ b/packages/haring-react-table/src/Components/Table/Table.tsx @@ -305,10 +305,12 @@ export function Table>( function handleItemsPerPageChange(value: number): void { setPageSize(value); + paginationProps?.onItemsPerPageChange?.(value); } function handlePageChange(value: number): void { setPageIndex(value - 1); + paginationProps?.onPageChange?.(value - 1); } return (