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

React final form calculate makes dirty form in async initalValues #28

Open
rzkhosroshahi opened this issue May 1, 2019 · 0 comments
Open

Comments

@rzkhosroshahi
Copy link

Are you submitting a bug report or a feature request?

I guess feature request.

What is the current behavior?

Hi, thanks for making this handy form package :)
I have a component that makes initialValue from API and also I'm using final form calculate to change some field values. in the initial loading after data fetched calculate function make the form to dirty.

What is the expected behavior?

I expected when initalValues change by final form calculate in this situation my form don't be dirty

Sandbox Link

https://codesandbox.io/s/38rorvr8kq

What's your environment?

"react-final-form": "^4.1.0",
"react-final-form-arrays": "^2.0.3",
"final-form": "^4.12.0",
"final-form-arrays": "^1.1.2",
"final-form-calculate": "^1.3.1",
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