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
## Problem
I've seeing a bug in which uncheck doesn't work as expected with checkboxes with array names like:
<input type="checkbox" name="items[]" value="one" />
## Issue
The issue was that `FormData.merge`combined the previous value with the newly computed value for array-named checkboxes. In the uncheck case, that meant unchecked values could remain present because they were still in the old state.
## Fix
This commit introduces `FormData.override`, which replaces the old value with a newly computed one + logic to calculate this new state for checkboxes with array-like names. It also adds tests reproducing the issue.
0 commit comments