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

FormSpy can't handle calculated fields properly #8

Closed
doasync opened this issue Mar 13, 2018 · 1 comment
Closed

FormSpy can't handle calculated fields properly #8

doasync opened this issue Mar 13, 2018 · 1 comment

Comments

@doasync
Copy link

doasync commented Mar 13, 2018

Are you submitting a bug report or a feature request?

bug report

What is the current behavior?

FormSpy gets an old value

What is the expected behavior?

I expect that I can handle calculated fields with FormSpy. An onChange should be triggered after calculation.

Sandbox Link

Set "Minimum" to 10 and compare the values with json:
https://codesandbox.io/s/23l5vol95j

What's your environment?

"final-form": "^4.2.0",
"final-form-calculate": "^1.0.2",
"react-final-form": "^3.1.0",

Other information

@erikras
Copy link
Member

erikras commented Mar 14, 2018

This was a very cool bug. 👍

Published fix in final-form@4.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

2 participants