[material-ui][Pagination] Hide ellipses with zero boundary and sibling counts by lprnmns · Pull Request #49090 · mui/material-ui · GitHub
Skip to content

[material-ui][Pagination] Hide ellipses with zero boundary and sibling counts - #49090

Open
lprnmns wants to merge 1 commit into
mui:masterfrom
lprnmns:codex/fix-pagination-zero-boundaries
Open

[material-ui][Pagination] Hide ellipses with zero boundary and sibling counts#49090
lprnmns wants to merge 1 commit into
mui:masterfrom
lprnmns:codex/fix-pagination-zero-boundaries

Conversation

@lprnmns

@lprnmns lprnmns commented Sep 4, 2026

Copy link
Copy Markdown

Closes #24749

When both boundaryCount and siblingCount are zero, the pagination body currently contains the current page plus start and end ellipses. Those ellipses do not expose any page and make the opt-in compact configuration wider than necessary.

This uses the special case proposed in the issue: the body contains only the current page when both counts are zero. Other boundary and sibling count combinations continue through the existing item generation.

Tests:

  • pnpm test:unit packages/mui-material/src/usePagination/usePagination.test.js --run (32 passed across node and Chromium)
  • pnpm exec eslint packages/mui-material/src/usePagination/usePagination.js packages/mui-material/src/usePagination/usePagination.test.js
  • pnpm exec prettier --check packages/mui-material/src/usePagination/usePagination.js packages/mui-material/src/usePagination/usePagination.test.js
  • pnpm -F @mui/material typescript
  • pnpm release:build
  • Full @mui/material unit run: 10,128 passed; 3 unrelated Select timing tests failed, then passed 6/6 on focused rerun.

@code-infra-dashboard

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Pagination] unexpected behavior when setting boundaryCount and siblingCount

1 participant