Skip to content

Fix for issue #456 - Fixes unwanted breaking change for array input names#461

Merged
gertdreyer merged 1 commit intofinal-form:mainfrom
antonvialibri1:fix-for-array-checkboxes-inputs-after-regression-introduced-in-version-4.20.3
Jan 11, 2023
Merged

Fix for issue #456 - Fixes unwanted breaking change for array input names#461
gertdreyer merged 1 commit intofinal-form:mainfrom
antonvialibri1:fix-for-array-checkboxes-inputs-after-regression-introduced-in-version-4.20.3

Conversation

@antonvialibri1
Copy link
Contributor

@antonvialibri1 antonvialibri1 commented Sep 9, 2022

Fix for issue #456 - Fixes unwanted breaking change for array input names introduced in v4.20.3 (a3575ef) - v4.20.2 used to work fine

Hello @erikras and @jedwards1211,

Commit a3575ef (PR 381) introduced a breaking change for array input names like choices[] and options[] (see issue #456).

In v4.20.2, keys like "choices[]" and "options[]" all map to the following correct paths: ["choices"], ["options"].

Since v4.20.3, after PR 381 was merged, "choices[]" and "options[]"
started to map to ["choices", ""] and ["options", ""], which is not retro-compatible with what we had in v4.20.2 and breaks some of our forms relying on array input names like choices[].

A few months ago I created an issue about this unwanted breaking change here: #456

This PR fixes issue #456 and restores the previous behaviour for keys like choices[], options[], etc...

@erikras Could you please review it and release a new patch version with this patch?
We currently cannot upgrade final-form to v4.20.3 and above because of this issue.

Thanks!

…ay input names introduced in v4.20.3 (a3575ef) - v4.20.2 used to work fine
@erikras
Copy link
Member

erikras commented Jan 11, 2023

Published in v4.20.8.

@antonvialibri1
Copy link
Contributor Author

@erikras Thank you!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants