fix: correct page number handling in Pagination component for accurate navigation
This commit is contained in:
parent
2856081525
commit
668a0e13f8
|
|
@ -1141,8 +1141,8 @@ export const Pagination: React.FC<any> = ({
|
|||
if (e?.label !== "...") {
|
||||
local.page = getNumber(e?.label);
|
||||
local.render();
|
||||
onChangePage(local.page - 1);
|
||||
setPage(local.page - 1);
|
||||
onChangePage(local.page);
|
||||
setPage(local.page);
|
||||
list.reload();
|
||||
}
|
||||
}}
|
||||
|
|
|
|||
Loading…
Reference in New Issue