-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels


