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
{{ message }}
Repository navigation
removeFieldValue + pushFieldValue not properly deleting values #1840
I'm not 100% that this is a bug, but the behaviour is counter intuitive for me at least.
I have an array of objects in my data structure and show their values via form.Field mode="array" with useFieldContext.
When I delete an existing entry and add a new entry with undefined properties, properties from the deleted row are used.
Un/Comment lines 15-18.
Lines commented with "works fine" will display the empty value.
Lines commented with "does not work" will display the value from the previously removed row.
Expected behavior
I'd expect that the newly added row is empty, even if their properties are undefined.
PRs have installation scripts so you can try them out. I'll test the reproducible example later with that version, but if you can do it in the meantime, I'd appreciate it!
Activity
LeCarbonator commentedon Nov 2, 2025
Is #1729 what you're looking for?
skeadr commentedon Nov 3, 2025
I'm not deep enough in the library internals to be sure about that, but it at least seems like it. We'll see 👍
LeCarbonator commentedon Nov 3, 2025
PRs have installation scripts so you can try them out. I'll test the reproducible example later with that version, but if you can do it in the meantime, I'd appreciate it!
skeadr commentedon Nov 3, 2025
Didn't use/adjust any tests, but replaced the code in one of the examples with the code from the minimal example here and tried it out.
Seems to work 👍
crutchcorn commentedon Dec 1, 2025
Closing since a report of things working