feat: forms validate only on submit
This commit is contained in:
parent
b1e6ae5124
commit
a08e0fbbcc
14 changed files with 30 additions and 1 deletions
|
|
@ -49,6 +49,8 @@ const PromoCodesModal = ({ showModal, onClose, errorMsg, addCode }) => {
|
|||
handleClose={onClose}
|
||||
open={true}>
|
||||
<Formik
|
||||
validateOnBlur={false}
|
||||
validateOnChange={false}
|
||||
initialValues={initialValues}
|
||||
validationSchema={validationSchema}
|
||||
onSubmit={({ code, discount }) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue