Material React Table Custom edit #753
Closed
RolandExSauce
started this conversation in
General
Replies: 0 comments
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.
-
Hello guys, I'm pretty new on using the material react table. I was wondering if you could help me out with a small issue I have:
First I have a renderRowActions prop wich opens a modal
.... more code
/>
my handleSaveRowEdits function looks like:
const handleSaveRowEdits: MaterialReactTableProps["onEditingRowSave"] =
async ({ exitEditingMode, row, values }) => {
Then on each colum, I used a custom Textfield component to render inside modal window,
{
accessorKey: "routerSSID",
header: "Router SSID",
/* help here*
}}
/>
),
},
onChange captures the new value being typed in,
when I console.log(values) in handleSaveRowEdits function, it still shows the old values, and not the one I typed
how do I get this value inside handleSaveRowEdits or how do I update this properly?
Thanks in advance for your help guys
Beta Was this translation helpful? Give feedback.
All reactions