We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a7aa1e commit 41eac04Copy full SHA for 41eac04
src/Pagination.tsx
@@ -480,10 +480,11 @@ const Pagination: React.FC<PaginationProps> = (props) => {
480
}
481
482
if (allPages - current >= pageBufferSize * 2 && current !== allPages - 2) {
483
- pagerList[pagerList.length - 1] = React.cloneElement(pagerList.at(-1), {
+ const lastOne = pagerList[pagerList.length - 1];
484
+ pagerList[pagerList.length - 1] = React.cloneElement(lastOne, {
485
className: classNames(
486
`${prefixCls}-item-before-jump-next`,
- pagerList.at(-1).props.className,
487
+ lastOne.props.className,
488
),
489
});
490
0 commit comments