material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Warning: React does not recognize the `cellEditable` prop on a DOM element.

Open lfsando opened this issue 6 years ago • 23 comments

<MaterialTable data={clients}  columns={[]} />

Describe the bug

There is something in the data that is triggering this error. I don't even need to set columns or any other prop. I believe it didn't happen before the latest update Happens after data is loaded.

bug1 bug2
  • OS: Windows 10
  • Browser Chrome
  • Version 84.0.4147.89
  • Typescript

lfsando avatar Jul 27 '20 02:07 lfsando

Encountering this warning as well. Also 'onCellEditStarted' and 'onCellEditFinished'.

Going back tot 1.66 fixed it

ZakKa89 avatar Jul 27 '20 14:07 ZakKa89

Encountering the same issue. Warning: Unknown event handler property onCellEditFinished. It will be ignored. Warning: Unknown event handler property onCellEditStarted. It will be ignored.

flora8984461 avatar Jul 27 '20 20:07 flora8984461

Sadly 1.66 doesn't have cell editing. Nice component though.

mike-niemand avatar Jul 27 '20 20:07 mike-niemand

Encountering this also

cnebs avatar Jul 30 '20 02:07 cnebs

Having the same issue as well.

console.error node_modules/@testing-library/react/dist/act-compat.js:52
      Warning: React does not recognize the `cellEditable` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `celleditable` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
          in td (created by ForwardRef(TableCell))
          in ForwardRef(TableCell) (created by WithStyles(ForwardRef(TableCell)))

jakub-bao avatar Jul 30 '20 19:07 jakub-bao

React does not recognize the cellEditableprop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercasecelleditable instead. If you accidentally passed it from a parent component, remove it from the DOM element.

Is this broken for a new React update? Such a shame

Denis-Step avatar Jul 30 '20 21:07 Denis-Step

Also experiencing this issue, sadly.

kkirsche avatar Jul 31 '20 12:07 kkirsche

Why was this closed? I don't see a fix.

blankenshipd001 avatar Jul 31 '20 14:07 blankenshipd001

Encountering this warning as well. Also 'onCellEditStarted' and 'onCellEditFinished'.

Going back tot 1.66 fixed it

I'm seeing this even in 1.66.0. :-/

jaypalexa avatar Aug 02 '20 06:08 jaypalexa

Still here in 1.66.0

LavHinsu avatar Aug 02 '20 08:08 LavHinsu

I have the same issue on version 1.67.1 @mbrn

ridvanaltun avatar Aug 02 '20 17:08 ridvanaltun

having 1 Warning: Unknown event handler property onCellEditStarted. It will be ignored. in td (created by ForwardRef(TableCell)). //////////////////////////////////// 2 index.js:1 Warning: React does not recognize the cellEditable prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase celleditable instead. If you accidentally passed it from a parent component, remove it from the DOM element ///////////////////////////// 3 Warning: Unknown event handler property onCellEditFinished. It will be ignored. in tr (created by ForwardRef(TableRow)) /////////////////////////////////////////////

hafeez-ullah-khan avatar Aug 07 '20 09:08 hafeez-ullah-khan

All! Bump up the version to 1.68.0.

If it is still there delete your node_modules and reinstall make sure that you can see node_modules folder when you do ls then

rm -rf node_modules
npm install

this case can be remain closed

orhanhub avatar Aug 08 '20 14:08 orhanhub

All! Bump up the version to 1.68.0.

If it is still there delete your node_modules and reinstall make sure that you can see node_modules folder when you do ls then

rm -rf node_modules
npm install

this case can be remain closed

Updating the version to 1.68.0 instead leads to another error:

Warning: Unknown event handler property `onBulkEditRowChanged`. It will be ignored.
    in tr (created by ForwardRef(TableRow))
    in ForwardRef(TableRow) (created by WithStyles(ForwardRef(TableRow)))
    in WithStyles(ForwardRef(TableRow)) (created by MTableEditRow)
    in MTableEditRow (at DailyReport.js:226)
    in EditRow (created by MTableBody)
    in tbody (created by ForwardRef(TableBody))
    in ForwardRef(TableBody) (created by WithStyles(ForwardRef(TableBody)))
    in WithStyles(ForwardRef(TableBody)) (created by MTableBody)
    in MTableBody (created by Droppable)
    in table (created by ForwardRef(Table))
    in ForwardRef(Table) (created by WithStyles(ForwardRef(Table)))
    in WithStyles(ForwardRef(Table)) (created by Droppable)
    in div (created by Droppable)
    in div (created by Droppable)
    in div (created by Droppable)
    in Droppable (created by ConnectFunction)
    in ConnectFunction
    in ConnectFunction (created by MaterialTable)
    in div
    in Unknown (created by WithStyles(Component))
    in WithStyles(Component) (created by MaterialTable)
    in div (created by ForwardRef(Paper))
    in ForwardRef(Paper) (created by WithStyles(ForwardRef(Paper)))
    in WithStyles(ForwardRef(Paper)) (created by Container)
    in Container (created by MaterialTable)
    in Provider (created by App)
    in App (created by ErrorBoundary)
    in ErrorBoundary (created by DragDropContext)
    in DragDropContext (created by MaterialTable)
    in MaterialTable
    in Unknown (created by WithStyles(Component))
    in WithStyles(Component) (at DailyReport.js:168)
    in DailyReport (at AdminPanel.js:189)
    in div (created by ForwardRef(DialogContent))
    in ForwardRef(DialogContent) (created by WithStyles(ForwardRef(DialogContent)))
    in WithStyles(ForwardRef(DialogContent)) (at AdminPanel.js:187)
    in div (created by ForwardRef(Paper))
    in ForwardRef(Paper) (created by WithStyles(ForwardRef(Paper)))
    in WithStyles(ForwardRef(Paper)) (created by ForwardRef(Dialog))
    in div (created by Transition)
    in Transition (created by ForwardRef(Fade))
    in ForwardRef(Fade) (created by Unstable_TrapFocus)
    in Unstable_TrapFocus (created by ForwardRef(Modal))
    in div (created by ForwardRef(Modal))
    in ForwardRef(Portal) (created by ForwardRef(Modal))
    in ForwardRef(Modal) (created by ForwardRef(Dialog))
    in ForwardRef(Dialog) (created by WithStyles(ForwardRef(Dialog)))

Hopefully this PR will fix this issue.

matthewtridoan avatar Aug 11 '20 21:08 matthewtridoan

I tried to downgrade to v1.57.2 and it removed warning.

yerycs avatar Aug 20 '20 10:08 yerycs

I've downgraded material-table like 3 times or more while working in a single project. That made the trick for me for a myriad of random errors. There are fixes to all of those errors (at least the most of them) but material-table haven't approved a single PR since a while by now.

ditherized avatar Aug 27 '20 20:08 ditherized

same issue here

asaadawey avatar Oct 13 '20 22:10 asaadawey

Lo unico que creo que podemos hacer frente a este problema es instalar una versión anterior.

RFNuma avatar Nov 08 '20 03:11 RFNuma

Hey everyone, it seems the latest version v1.69.2 is working fine regards to this problem. I have updated here and I haven't got those errors anymore.

NadsonR avatar Dec 06 '20 13:12 NadsonR

well, I am using 1.67.0 and getting the same error\warning. @NadsonR 1.69.x has it's own problem of browser freezing so, be cautious not sure if you've encountered it so far as I had to downgrade it to 1.67.0 to get around the freezing issue.

DewangS avatar Dec 13 '20 22:12 DewangS