How to obtain unsaved changed value in the muiTableBodyCellEditTextFieldProps #290
Unanswered
AdityaBhadange
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Have you seen the validation example code in the Editing CRUD example on the docs site? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm working on the inline edit row feature. Now I have the requirement to validate my edit TextField component with respect to the other fields. I can get the rowData (i.e. old data) from muiTableBodyCellEditTextFieldProps. Still, I want the rowData that I have changed but hasn't been saved yet to validate my input with the other cell's updated data on the go.
Last time I was able to do this with mbrn/material-table by mutating the table data cell value directly onChange, so that on the validate field I could get all the updated cell values. But I think that was the wrong approach, so I'm asking here for a cleaner approach.
Hope this clarifies.
Beta Was this translation helpful? Give feedback.
All reactions