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
When calling revalidate, the input gets focused, but validation errors are not displayed unless the form is submitted.
revalidate
const validation = new JustValidate('#form'); validation.addField('#email', [ { rule: 'required', errorMessage: 'Email is required' }, { rule: 'email', errorMessage: 'Invalid email format' }, ]); validation.revalidate();
validation.revalidate()
revalidate should validate the field and display the error message immediately without focusing the field.
The text was updated successfully, but these errors were encountered:
Hi @mdalaminbey!
I have encountered the same issue. In version 4.1.0, the revalidate method still shows the error message. Do you find a workaround on version 4.3.0?
Sorry, something went wrong.
No branches or pull requests
When calling
revalidate
, the input gets focused, but validation errors are not displayed unless the form is submitted.Steps to Reproduce:
validation.revalidate()
.Expected Behavior:
revalidate
should validate the field and display the error message immediately without focusing the field.The text was updated successfully, but these errors were encountered: