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: '',
|
||||
password: '',
|
||||
})
|
||||
setFormValid(false)
|
||||
|
||||
if (props.onOpenChange) props.onOpenChange(open)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -278,6 +278,7 @@ const SignupModal = (props: Props) => {
|
|||
password: '',
|
||||
passwordConfirmation: '',
|
||||
})
|
||||
setFormValid(false)
|
||||
|
||||
if (props.onOpenChange) props.onOpenChange(open)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue