Error while typing on input on new row, if onRowDataChange
Guidelines
-
Please include a demo of the issue/behavior/question you have
-
Please try to be as detailed as possible
-
You may fork one of the following starter templates if you would like:
Describe the bug
While typing on any one of the inputs on a new row (that displays on click of add icon), if the editComponent input includes onRowDataChange property, then TypeError: _this2.props.onBulkEditRowChanged is not a function is thrown.
This is because onBulkEditRowChanged function is not defined in a new row props.
To Reproduce Steps to reproduce the behavior:
- Create a MaterialTable component
- Add
editComponentfor a column - On column with
editComponent, addonRowDataChangeaction - On the browser, click on add row
- On the new row created, start typing on the column with
onRowDataChange - See error
Expected behavior Normal behaviour as the other rows while updation, but in the context of new addition.
Screenshots

Desktop (please complete the following information):
- OS: Windows
- Browser: chrome
- Version 84.0.4147.89 (Official Build) (64-bit)
+1 - It does not seem to be working on the example page as well. https://material-table.com/#/docs/features/editable
Also, this seems to be an issue with the latest version of material-table (1.68). Seems to be working fine with 1.67.1.
Have similar issue. Downgrade to previous version 1.67.1
Yes. The downgrade worked for me too. Bug on version 1.68.0 release.
On Tue, 4 Aug 2020 at 6:39 PM, Yuri Kravcenko [email protected] wrote:
Have similar issue. Downgrade to previous version 1.67.1
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mbrn/material-table/issues/2269#issuecomment-668586212, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFRXJS6W6LHGN3ZGBIWKTS3R7ACBPANCNFSM4PTTQJMA .
-- Regards, Sindhuja Govindarajan. Chennai, TN, India.
Got the same issue. Downgrade to 1.67.1 works
I currently use version 1.57.2 and the same thing happens
Started to experience that few minutes ago after editing the table once it keeps throw this exception.
Got the same issue. Downgrade to 1.67.1 works
Same.
Same issue, and downgrading to 1.67 I am having a bunch of warnings...
This is simply caused by passing this to the base input field. This should be removed from the spreaded props somewhere. {...props}. Can someone open a PR to extract that?
Same issue here
It works when I downgraded to 1.67.1.
Just be careful to remove the ^ in your package.json.
-> You should have: "material-table": "1.67.1", and not "material-table": "^1.67.1", (it might install 1.68, the buggued version)
Yes, could you please fix this on 1.68.0? Because on 1.67.1, there was another error, so I had to bump up to 1.68
Its not a bug but it was renamed to onBulkUpdate. So you need to use this.
The issue is still there with onRowAdd, examples (Custom Edit Component Example) given here https://material-table.com/#/docs/features/editable are not working either.
Error: TypeError: e.props.onBulkEditRowChanged is not a function
Downgraded to "material-table": "^1.67.1"
The basic add feature itself doesn’t work on the material-table doc examples.
This is not just about a function rename as you say.
On Mon, 10 Aug 2020 at 12:11 AM, Domino987 [email protected] wrote:
Its not a bug but it was renamed to onBulkEditRowChanged. So you need to use this.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mbrn/material-table/issues/2269#issuecomment-671086946, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFRXJS7S6HXJLP433A6SCPDR73UWVANCNFSM4PTTQJMA .
-- Regards, Sindhuja Govindarajan. Chennai, TN, India.
@Domino987 ok, let's try adding a column in your examples page, when u start type text to column, table is crashed
https://material-table.com/#/docs/features/editable

@Domino987 ok, let's try adding a column in your examples page, when u start type text to column, table is crashed https://material-table.com/#/docs/features/editable
@petr-like Literally right now encountered this issue, as the other dev friends said, downgrade to 1.67.1 and make sure in your package.json looks something like this:
"material-table": "1.67.1" not "material-table": "^1.67.1"
It worked for me instantly...
@Domino987 This is a bug indeed, it shouldn't be closed. Have a look for yourself at https://material-table.com/#/docs/features/editable:
- Open the console
- Expand "Editable example"
- Click on the add button
- Try writing anything in the "name" field. The UI becomes broken immediately and the following error appears:
TypeError: e.props.onBulkEditRowChanged is not a function. (In 'e.props.onBulkEditRowChanged(e.props.data,n)', 'e.props.onBulkEditRowChanged' is undefined)
I am having the same issue while running the codesandbox.io material-table example referenced in material-ui.com. Easily reproducible by simply clicking on the edit in sandbox example and attempting to add a new row. The error is thrown when typing in one of the input fields of the newly added row.
+1