-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Description
When calling revalidate
, the input gets focused, but validation errors are not displayed unless the form is submitted.
Steps to Reproduce:
- Initialize JustValidate with validation rules:
const validation = new JustValidate('#form'); validation.addField('#email', [ { rule: 'required', errorMessage: 'Email is required' }, { rule: 'email', errorMessage: 'Invalid email format' }, ]); validation.revalidate();
- Call
validation.revalidate()
. - The field is focused, but no error message is displayed.
Expected Behavior:
revalidate
should validate the field and display the error message immediately without focusing the field.
codetoon, LuisJorgeLozano, tsabados and devShamim
Metadata
Metadata
Assignees
Labels
No labels