jaredpalmer / formik

Build forms in React, without the tears 😭
https://formik.org
Apache License 2.0
34k stars 2.79k forks source link

After submitting a form the isSubmitting property is automatically set back to false without calling setSubmitting() #1985

Open kbi-daniel opened 5 years ago

kbi-daniel commented 5 years ago

🐛 Bug report

Current Behavior

After submitting a form the isSubmitting property is automatically set back to false without calling setSubmitting(). Note how fields and buttons are disabled after clicking submit, but then become reenabled. isSubmitting

Expected behavior

isSubmitting should remain true until developer calls setSubmitting(true)

Your environment

Software Version(s)
Formik 2.0.3
React 16.11.0
Browser Chrome
npm/Yarn NPM
Operating System Windows
dlindahl commented 5 years ago

This looks like a dupe of #1957

ziaulrehman40 commented 5 years ago

I can confirm the issue, not on all forms but on some, weird...

akomm commented 4 years ago

Can confirm it fixed in 2.1 in my case.