formio.js icon indicating copy to clipboard operation
formio.js copied to clipboard

Problem when deleting rows on Datagrid component

Open Aiso786 opened this issue 8 years ago • 1 comments

Hello guys, i have the following issue on the latest verison of formiojs (v2.25.2).

I have a Datagrid component with a list of rows: image

If i delete the second row, when i save and come back into the form, i still have 3 rows: image

When i look at the the form values submitted, i second that the third row has been is dupliated: image

I'm trying to figure out where the bug is, but I need help.

Aiso786 avatar Dec 07 '17 13:12 Aiso786

I found the problem. The issue was how the Lodash merge method treats nested arrays. Here is the fix https://github.com/formio/formio.js/pull/280

Going to release 2.25.3 with the fix.

Thanks!

travist avatar Dec 08 '17 22:12 travist