final-form / final-form-calculate

Decorator for calculating field values based on other field values in 🏁 Final Form
MIT License
113 stars 26 forks source link

Calculated fields got lost when form reset and none of the fields that trigger the calculations is dirty #34

Open thefat32 opened 4 years ago

thefat32 commented 4 years ago

Are you submitting a bug report or a feature request?

I'm submitting a bug report

What is the current behavior?

When you reset a form that has calculations and none of the fields that trigger the calculations is dirty, calculated fields are lost

What is the expected behavior?

I would expect calculated fields to be calculated again like when rendering the form for first time

Sandbox Link

CodeSandbox

What's your environment?

All affected

Other information