feat: forms validate only on submit

This commit is contained in:
José Oliveira 2021-02-17 14:58:34 +00:00 committed by Josh Harvey
parent b1e6ae5124
commit a08e0fbbcc
14 changed files with 30 additions and 1 deletions

View file

@ -43,6 +43,8 @@ const WizardStep = ({
{step <= 2 && (
<Formik
validateOnBlur={false}
validateOnChange={false}
onSubmit={onContinue}
initialValues={{ top: '', bottom: '' }}
enableReinitialize
@ -95,6 +97,8 @@ const WizardStep = ({
{step === 3 && (
<Formik
validateOnBlur={false}
validateOnChange={false}
onSubmit={onContinue}
initialValues={{ zeroConfLimit: '' }}
enableReinitialize