diff --git a/frontend/taipy-gui/src/components/Taipy/PaginatedTable.spec.tsx b/frontend/taipy-gui/src/components/Taipy/PaginatedTable.spec.tsx index d8881ae722..9cada57bad 100644 --- a/frontend/taipy-gui/src/components/Taipy/PaginatedTable.spec.tsx +++ b/frontend/taipy-gui/src/components/Taipy/PaginatedTable.spec.tsx @@ -697,7 +697,7 @@ describe("PaginatedTable Component", () => { type: "SEND_ACTION_ACTION", }); }); - it("should renders correctly when style is applied to columns", async () => { + it("should render correctly when style is applied to columns", async () => { const dispatch = jest.fn(); const state: TaipyState = INITIAL_STATE; await waitFor(() => { diff --git a/frontend/taipy-gui/src/components/Taipy/PaginatedTable.tsx b/frontend/taipy-gui/src/components/Taipy/PaginatedTable.tsx index fe0acff713..a26e4e0cff 100644 --- a/frontend/taipy-gui/src/components/Taipy/PaginatedTable.tsx +++ b/frontend/taipy-gui/src/components/Taipy/PaginatedTable.tsx @@ -199,7 +199,11 @@ const PaginatedTable = (props: TaipyPaginatedTableProps) => { useDispatchRequestUpdateOnFirstRender(dispatch, id, module, updateVars); - // TODO: unexpected behavior, need to check + /* + TODO: If the 'selected' value is a negative number, it will lead to unexpected pagination behavior. + For instance, if 'selected' is -1, the pagination will display from -99 to 0 and no data will be selected. + Need to fix this issue. + */ useEffect(() => { if (selected.length) { if (selected[0] < startIndex || selected[0] > startIndex + rowsPerPage) {