When using mui-datatables with controlled selected rows (pass rowsSelected and onRowsSelect) there is problem, when we change rows per page and then select row, option rows per page sets to default value
Rows per page don't flush to default values
Rows per page flush to default values
Live example: https://codesandbox.io/embed/pm225rwwjx
| Tech | Version |
|--------------|---------|
| Material-UI | 1.4.0 |
| MUI-datatables | 2.0.0-beta-38 |
| React | 16.5.0 |
| browser | Chrome |
There is a workaround to fix this problem.
You can pass rowsPerPage and onChangeRowsPerPage, and component mui-datatables will use them.
This issue has been fixed and should no longer be present in 2.4.0.
Most helpful comment
There is a workaround to fix this problem.
You can pass
rowsPerPageandonChangeRowsPerPage, and componentmui-datatableswill use them.Example
https://codesandbox.io/embed/jjo6wr45r3