We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70d46a3 commit e16e8b6Copy full SHA for e16e8b6
src/Pagination.tsx
@@ -63,7 +63,7 @@ const Pagination: React.FC<PaginationProps> = (props) => {
63
disabled,
64
simple,
65
showTotal,
66
- showSizeChanger: showSizeChangerProp,
+ showSizeChanger = total > totalBoundaryShowSizeChanger,
67
pageSizeOptions,
68
69
// render
@@ -228,8 +228,6 @@ const Pagination: React.FC<PaginationProps> = (props) => {
228
229
const hasPrev = current > 1;
230
const hasNext = current < calculatePage(undefined, pageSize, total);
231
- const showSizeChanger =
232
- showSizeChangerProp ?? total > totalBoundaryShowSizeChanger;
233
234
function prevHandle() {
235
if (hasPrev) handleChange(current - 1);
0 commit comments