mui-datatables
mui-datatables copied to clipboard
Warnings from deprecated\old props
Hi,
After update to the last Material-UI version: 4.12.1, I'm getting a lot of warnings from the table,
The warnings:
- Warning: Failed prop type: The prop
onExitedofForwardRef(Popover)is deprecated. Use theTransitionPropsprop instead. - Warning: Failed prop type: The prop
onChangePageofForwardRef(TablePagination)is deprecated. Use theonPageChangeprop instead. - Warning: Failed prop type: The prop
onChangeRowsPerPageofForwardRef(TablePagination)is deprecated. Use theonRowsPerPageChangeprop instead. - Warning: Failed prop type: The prop
onPageChangeis marked as required inForwardRef(TablePagination), but its value isundefined.
Thanks.
Facing the same issue
Material-table had the same issue and here is how we people are working around it until the fix is released: https://github.com/mbrn/material-table/pull/2937#issuecomment-879017952
Another workaround:
- https://github.com/gregnb/mui-datatables/pull/1748#issuecomment-897861778
Should now be resolved with latest version
I can confirm that 3.8.2 fixes the warnings / errors.
In my case, {...props} cause this problem. ...props include onExited params, so exclude this and use only you need.
Before
<Dialog {...props}> // <= this!
<DialogTitle>{title}</DialogTitle>
<DialogContent>
After
<Dialog open={isOpen}> <= remove ...props and not warning
</Dialog>