mui-datatables icon indicating copy to clipboard operation
mui-datatables copied to clipboard

Warnings from deprecated\old props

Open ariel-upstream opened this issue 4 years ago • 6 comments

Hi,

After update to the last Material-UI version: 4.12.1, I'm getting a lot of warnings from the table,

The warnings:

  1. Warning: Failed prop type: The prop onExited of ForwardRef(Popover) is deprecated. Use the TransitionProps prop instead.
  2. Warning: Failed prop type: The prop onChangePage of ForwardRef(TablePagination) is deprecated. Use the onPageChange prop instead.
  3. Warning: Failed prop type: The prop onChangeRowsPerPage of ForwardRef(TablePagination) is deprecated. Use the onRowsPerPageChange prop instead.
  4. Warning: Failed prop type: The prop onPageChange is marked as required in ForwardRef(TablePagination), but its value is undefined.

Thanks.

ariel-upstream avatar Jul 13 '21 13:07 ariel-upstream

Facing the same issue

joaomantovani avatar Aug 09 '21 01:08 joaomantovani

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

jelling avatar Aug 09 '21 19:08 jelling

Another workaround:

  • https://github.com/gregnb/mui-datatables/pull/1748#issuecomment-897861778

joaomantovani avatar Aug 13 '21 02:08 joaomantovani

Should now be resolved with latest version

danfoley1991 avatar Oct 26 '21 07:10 danfoley1991

I can confirm that 3.8.2 fixes the warnings / errors.

chickahoona avatar Nov 17 '21 12:11 chickahoona

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>

zahmis avatar Jul 22 '22 08:07 zahmis