You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Setup a new field, with an email validator.
Enter an invalid email, such as heythere!
Note that $form.valid is false, but $form.hasError('email.email') is also false (when it should be true)
Expected behavior
$form.hasError('email.email') should return true.
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.
The text was updated successfully, but these errors were encountered: