Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form validation do not run for untouched fields after initialValues change #29

Open
eugeneoshepkov opened this issue Apr 1, 2021 · 0 comments

Comments

@eugeneoshepkov
Copy link

Are you submitting a bug report or a feature request?

Bug report

What is the current behavior?

Asynchronously reinitialized fields (form prop initialValues changes) do not trigger validation. Meaning that untouched fields with populated values from initialValues fail on form validation.

What is the expected behavior?

Validation should happen on the form reinitialize, whenever prop initialValues changes

Sandbox Link

Codesandbox example

Versions:

    "final-form": "4.20.2",
    "react": "17.0.2",
    "react-dom": "17.0.2",
    "react-final-form": "6.5.3",
    "react-final-form-html5-validation": "1.1.0",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant