formio.js
formio.js copied to clipboard
Problem when deleting rows on Datagrid component
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:

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

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

I'm trying to figure out where the bug is, but I need help.
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!