final-form / final-form/react-final-form

React final-form with Select when list change

Open
#550 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.