[docs] Table Pagination: Rows per page "All" does not show last item #18258
Labels
bug 🐛
Something doesn't work
component: table
This is the name of the generic UI component, not the React module!
docs
Improvements or additions to the documentation
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 🕹
Bug
If "All" is selected,
page
is0
androwsPerPage
is-1
so the linerows.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
isrows.slice(0, -1)
and the last item get's removed.The text was updated successfully, but these errors were encountered: