-
Notifications
You must be signed in to change notification settings - Fork 932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: onPageChange is not a function #1735
Comments
Hello, I leave you the sandbox link here, you can notice that the selection of the lines remains does not work. ---> https://codesandbox.io/s/sparkling-wind-dtji1?file=/src/App.js:0-1977 |
I have had the same issue |
Same issue here |
It has to do with @material-ui v5, they changed the names of those props and in latest versions completely deprecated them. Relates to #1747 |
How do we solve this? I even downgrade @material-ui to v4 but the error persisted. |
Wait for this to get into new Version #1748 (comment) |
+1 |
3 similar comments
+1 |
+1 |
+1 |
I got the error in fuse react mui-data table. |
I expect the solution of this error |
+1 |
+3 |
+1 |
6 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
Any solution on this one yet? |
My workaround was to provide my own pagination component |
Hi,
In my table when I switch pages and rows it doesn't work
At the moment of rendering the content of the table is present, even the functions are all functional, outside the page switch and the selection of the rows to be displayed.
console error{
Warning: Failed prop type: The prop onPageChange is marked as required in ForwardRef(TablePagination), but its value is undefined
}
console error{
Warning: Unknown event handler property onChangePage. It will be ignored.
}
console error{
index.js:1 Warning: Unknown event handler property onChangeRowsPerPage. It will be ignored.
}
at each click of the icon to change the page or select the lines to be displayed, the following error is printed in the console
Uncaught TypeError: onPageChange is not a function.
here is my code..
-->
|--------------|---------|
| Material-UI |
| MUI-datatables | 3.7.7 |
| React | js |
| browser | chrome/safari |
| etc | |
The text was updated successfully, but these errors were encountered: