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

Warning: Unknown event handler property `onRowDataChange`. It will be ignored.

Open Wragdan opened this issue 7 years ago • 3 comments

Describe the bug When allowing editing on a table and clicking on the edit button, I get the following warning: Warning: Unknown event handler property onRowDataChange. It will be ignored.

To Reproduce Steps to reproduce the behavior:

  1. Create a MaterialTable component
  2. Add prop editable
  3. On prop editable, and onRowUpdate action
  4. On the browser, click on edit row
  5. [Bug]: Warning is thrown

Expected behavior No warning or error should be thrown when using editable rows.

Desktop (please complete the following information):

  • OS: macOS Mojave 10.14.4
  • Browser: chrome
  • Version 74.0.3729.169 (Official Build) (64-bit)

Additional context Here is the full error stack:

Warning: Unknown event handler property `onRowDataChange`. It will be ignored.
    in div (created by ForwardRef(FormControl))
    in ForwardRef(FormControl) (created by WithStyles(ForwardRef(FormControl)))
    in WithStyles(ForwardRef(FormControl)) (created by ForwardRef(TextField))
    in ForwardRef(TextField) (created by WithStyles(ForwardRef(TextField)))
    in WithStyles(ForwardRef(TextField)) (created by MTableEditField)
    in MTableEditField (created by MTableEditRow)
    in td (created by ForwardRef(TableCell))
    in ForwardRef(TableCell) (created by WithStyles(ForwardRef(TableCell)))
    in WithStyles(ForwardRef(TableCell)) (created by MTableEditRow)
    in tr (created by ForwardRef(TableRow))
    in ForwardRef(TableRow) (created by WithStyles(ForwardRef(TableRow)))
    in WithStyles(ForwardRef(TableRow)) (created by MTableEditRow)
    in MTableEditRow (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 Droppable (created by ConnectFunction)
    in ConnectFunction
    in ConnectFunction (created by MaterialTable)
    in div (created by ScrollBar)
    in ScrollBar (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) (created by UsersTable)
    in div (created by UsersTable)
    in UsersTable (created by Context.Consumer)
    in Connect(UsersTable) (created by Context.Consumer)
    in WithSnackbar(Connect(UsersTable)) (created by TeamManagement)
    in div (created by TeamManagement)
    in div (created by TeamManagement)
    in div (created by TeamManagement)
    in TeamManagement (created by Context.Consumer)
    in Connect(TeamManagement)
    in Unknown (created by SettingsForm)
    in SettingsForm (created by Context.Consumer)
    in Connect(SettingsForm) (created by Context.Consumer)
    in Route (created by withRouter(Connect(SettingsForm)))
    in withRouter(Connect(SettingsForm)) (created by SettingsCard)
    in div (created by SettingsCard)
    in section (created by SettingsCard)
    in ThemeProvider (created by SettingsCard)
    in SettingsCard (created by Context.Consumer)
    in Connect(SettingsCard) (created by Context.Consumer)
    in Route (created by withRouter(Connect(SettingsCard)))
    in withRouter(Connect(SettingsCard)) (created by WithStyles(withRouter(Connect(SettingsCard))))
    in WithStyles(withRouter(Connect(SettingsCard))) (created by SettingsPage)
    in div (created by SettingsPage)
    in SettingsPage (created by Context.Consumer)
    in Connect(SettingsPage) (created by component)
    in component (created by Context.Consumer)
    in Route (created by PrivateRoute)
    in div (created by bodyWrapper)
    in nav (created by bodyWrapper)
    in div (created by bodyWrapper)
    in section (created by bodyWrapper)
    in bodyWrapper (created by PrivateRoute)
    in div (created by PrivateRoute)
    in PrivateRoute (created by Context.Consumer)
    in Connect(PrivateRoute) (created by AppRouter)
    in Switch (created by AppRouter)
    in AppRouter (created by Jsx)
    in Router (created by Jsx)
    in Router (created by ConnectedRouter)
    in ConnectedRouter (created by Context.Consumer)
    in ConnectedRouterWithContext (created by Context.Consumer)
    in Connect(ConnectedRouterWithContext) (created by Jsx)
    in SnackbarProvider (created by Jsx)
    in Provider (created by Jsx)
    in Jsx
warningWithoutStack @ react-dom.development.js?61bb:506
warning @ react-dom.development.js?61bb:2628
validateProperty$1 @ react-dom.development.js?61bb:7261
warnUnknownProperties @ react-dom.development.js?61bb:7360
validateProperties$2 @ react-dom.development.js?61bb:7380
validatePropertiesInDevelopment @ react-dom.development.js?61bb:7431
setInitialProperties @ react-dom.development.js?61bb:7691
finalizeInitialChildren @ react-dom.development.js?61bb:8755
completeWork @ react-dom.development.js?61bb:16907
completeUnitOfWork @ react-dom.development.js?61bb:19142
performUnitOfWork @ react-dom.development.js?61bb:19340
workLoop @ react-dom.development.js?61bb:19352
renderRoot @ react-dom.development.js?61bb:19435
performWorkOnRoot @ react-dom.development.js?61bb:20342
performWork @ react-dom.development.js?61bb:20254
performSyncWork @ react-dom.development.js?61bb:20228
interactiveUpdates$1 @ react-dom.development.js?61bb:20495
interactiveUpdates @ react-dom.development.js?61bb:2170
dispatchInteractiveEvent @ react-dom.development.js?61bb:4882

Wragdan avatar Jun 05 '19 15:06 Wragdan

+1 I ran into the same warning message in editable mode

ktamaral avatar Jun 05 '19 16:06 ktamaral

Was reported here: #615

BVH77 avatar Jun 05 '19 17:06 BVH77

@BVH77 You are right, I'll close this issue then.

Wragdan avatar Jun 05 '19 19:06 Wragdan