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
@sachin8094 Did you try to validate your input in the onBlur event? It works for me. const [address, setAddress] = useState() const simpleValidator = useRef(new SimpleReactValidator()) <Input name="name" value={companyInformation.name} onChange={handleInputChange} onBlur={simpleValidator.current.showMessageFor('name')} /> {simpleValidator.current.message('name', companyInformation.name, 'required')}
@sachin8094 Did you try to validate your input in the onBlur event? It works for me.
const [address, setAddress] = useState() const simpleValidator = useRef(new SimpleReactValidator()) <Input name="name" value={companyInformation.name} onChange={handleInputChange} onBlur={simpleValidator.current.showMessageFor('name')} /> {simpleValidator.current.message('name', companyInformation.name, 'required')}
I try this but it's showing errors on page load not on onblur
Originally posted by @pooja-yadav-ctrl in #97 (comment)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I try this but it's showing errors on page load not on onblur
Originally posted by @pooja-yadav-ctrl in #97 (comment)
The text was updated successfully, but these errors were encountered: