Skip to content

[RFR] Fix out of boundaries pagination does not allow pagination - #2365

Merged
djhi merged 2 commits into
masterfrom
fix-out-of-boundaries-pagination
Sep 28, 2018
Merged

djhi merged 2 commits into
masterfrom
fix-out-of-boundaries-pagination

Conversation

@fzaninotto

Copy link
Copy Markdown
Member

We don't display the "out of boundaries" message anymore. Instead, we get back to page 1 (when page < 1) or to the last page (when page > last Page) without showing any notice.

kapture 2018-09-28 at 8 34 14

The first check is done in our Pagination's componentDidUpdate, the second check is done in material-ui's <TablePagination>.

The ra.navigation.page_out_of_boundaries message is still required by Pagination.handlePageChange, so I didn't remove it from translation files.

Closes #2350

@fzaninotto fzaninotto added this to the 2.3.3 milestone Sep 28, 2018
@djhi
djhi merged commit b49f10f into master Sep 28, 2018
@djhi
djhi deleted the fix-out-of-boundaries-pagination branch September 28, 2018 17:36
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.

2 participants