Disable form validation when open state changes
This commit is contained in:
parent
0d11be1a93
commit
a1b3ecbaa4
2 changed files with 2 additions and 0 deletions
|
|
@ -199,6 +199,7 @@ const LoginModal = (props: Props) => {
|
||||||
email: '',
|
email: '',
|
||||||
password: '',
|
password: '',
|
||||||
})
|
})
|
||||||
|
setFormValid(false)
|
||||||
|
|
||||||
if (props.onOpenChange) props.onOpenChange(open)
|
if (props.onOpenChange) props.onOpenChange(open)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -278,6 +278,7 @@ const SignupModal = (props: Props) => {
|
||||||
password: '',
|
password: '',
|
||||||
passwordConfirmation: '',
|
passwordConfirmation: '',
|
||||||
})
|
})
|
||||||
|
setFormValid(false)
|
||||||
|
|
||||||
if (props.onOpenChange) props.onOpenChange(open)
|
if (props.onOpenChange) props.onOpenChange(open)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue