-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
docsImprovements or additions to the documentation.Improvements or additions to the documentation.scope: tableChanges related to the table.Changes related to the table.type: bugIt doesn't behave as expected.It doesn't behave as expected.
Description
- The issue is present in the latest release. (only in the docs example, not in material-ui library)
- I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯
If you select "All" Rows per page option in the docs example Table > Custom pagination actions (https://material-ui.com/components/tables/#custom-pagination-actions) only 12 of the 13 items are visible. Item KitKat is missing.
Expected Behavior 🤔
All items should be visible.
Steps to Reproduce 🕹
- Open https://material-ui.com/components/tables/#custom-pagination-actions
- select Rows per page "All"
Bug
If "All" is selected, page is 0 and rowsPerPage is -1 so the line rows.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage) is rows.slice(0, -1) and the last item get's removed.
Metadata
Metadata
Assignees
Labels
docsImprovements or additions to the documentation.Improvements or additions to the documentation.scope: tableChanges related to the table.Changes related to the table.type: bugIt doesn't behave as expected.It doesn't behave as expected.