Open kirkbushell opened 1 year ago
Alright, I figured it out - documentation needs an update. Unfortunately, you need to know the internal error string that is raised when it errors - which is.. "not_an_email"
I would have expected it to just be "email". like "required" (same function name).
Describe the bug When an email input has the email validator registered, checking for email.email error fails. The form knows its invalid, but the email validator check does not return true that it is the validation that has failed.
To Reproduce Steps to reproduce the behavior:
Expected behavior $form.hasError('email.email') should return true.
Additional context Code being used:
The div that highlights it all in red, is showing, but it's not showing the invalid error for the email validation.