We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a strange behavior after submitting the form.
First time:
`const handleSubmit = async (e) => { e.preventDefault();
const formValid = simpleValidator.current.allValid(); if (formValid) { setLoading(true); await sleep(2500); } else { simpleValidator.current.showMessages(); forceUpdate(1); } }`
const cb = () => { setLoading(false); setState(blankState); simpleValidator.current.hideMessages(); }
Work fine
But when complete the submit i'm trying to clean the messages with the cb function
after submit don't show the messages
only show the messages when put something in the field
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a strange behavior after submitting the form.
First time:
`const handleSubmit = async (e) => {
e.preventDefault();
const cb = () => { setLoading(false); setState(blankState); simpleValidator.current.hideMessages(); }
Work fine
But when complete the submit i'm trying to clean the messages with the cb function
after submit don't show the messages
only show the messages when put something in the field
The text was updated successfully, but these errors were encountered: