final-form / final-form/react-final-form
React final-form with Select when list change
Open
- Dominant language
- JavaScript
- Stars
- 7.4k
- Forks
- 497
- PR merge metrics
- No merged PRs in 30d
Description
Is there anyway to reset the value of Field Select when the list of select has changed.
For example: I have a Field with Select component and the data list of select is [1, 2, 3, 4] then I pick item "3". Form value with that field has been assign with "3" value. Then the data list has changed to [1, 2, 4, 5, 6] without 3 value. But the form value with that field still keep "3" value in the previous selection.
I think when the list change, if the value does not appear anymore on the new list then it should be cleared.
Contributor guide
Assessment
This issue has not been assessed yet.