Bugfixes
- Changed
onSubmit
behavior to mimic v1 if the function is synchronous. This means fixes a bug whereisSubmitting
was never toggled. To summarize: IfonSubmit
is async, then Formik will automatically setisSubmitting
tofalse
on your behalf once the submission is completed. This means you do NOT need to callformikBag.setSubmitting(false)
manually in v2. HOWEVER, if youronSubmit
function is synchronous (e.g. v1), then you need to still callsetSubmitting(false)
on your own. (#1987) - Fix checkbox bug with null value (#2027)
- Update
validateFormWithLowPriority
with to use fresh values (#2025)
Commits
- Generate 2.0.5 website a78bbff
- Add docs about v1 onSubmit behavior 430f6cc
- Update versions in docs af0c7d0
- [tutorial] change id to name for Field example (#2007) d0d7602
- Fix code examples in tutorial (#2049) b04a762
- Use FormikHelpers instead of FormikActions in the example. (#2001) 8dbaaba
- Change
isSubmitting
behaviour to mimic v1 (#1987) 3ce6551 - Fix validation with instances in arrays, follow up to PR #1949 (#2029) c0fe1b9
- Fix a few typos in tutorial.md (#2041) e386371
- Update tutorial.md (#2043) eb2029d
- Update tutorial.md (#2036) d78266f
- Update tutorial.md (#2037) 0f54fb8
- Update tutorial.md (#2038) aa7fbdb
- [ImgBot] Optimize images (#2035) d0b5b07
- Add Restaurant365 to users list (#2009) 02c303f
- Fix checkbox with null value (#2027) 5916ac0
- fix typo: visted -> visited (#2032) 55cbfd3
- Call validateFormWithLowPriority with correct values (#2025) 8c08a63
- Update tutorial.md (#2030) 28c9242
- Update tutorial.md (#2031) 4b52d26
- Fixed typo in useField.md. (#2013) 189256d
- Fix typo (#2016) 11a4bee
- Update README.md 7940fee