You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi primereact team! Hope you are doing well! I'm working with a DataTable in a row edit mode. I have for each row an object with a nested array. I'm able to show the data by accessing the data like parentObject.innerArray.0.value. But when I update the value it adds the new field to initial object with a name "parentObject.innerArray.0.value" and not updates the actual nested array.
melloware
added
Type: Bug
Issue contains a defect related to a specific component.
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Aug 25, 2023
Describe the bug
Hi primereact team! Hope you are doing well! I'm working with a DataTable in a row edit mode. I have for each row an object with a nested array. I'm able to show the data by accessing the data like parentObject.innerArray.0.value. But when I update the value it adds the new field to initial object with a name "parentObject.innerArray.0.value" and not updates the actual nested array.
Reproducer
https://codesandbox.io/s/delicate-tdd-7w9zmg?file=/src/demo/DataTableEditDemo.js
PrimeReact version
9.5.0
React version
18.x
Language
TypeScript
Build / Runtime
Next.js
Browser(s)
No response
Steps to reproduce the behavior
Please see the codesanbox.
Expected behavior
I expect the field name of the column to be considered as a path and not a name.
The text was updated successfully, but these errors were encountered: