Steps to reproduce:
add(new EmailField());
- Notice that the empty non-visited field is invalid
It's because empty string doesn't match the email-pattern. Empty string should not be invalidated as invalid email address, as we have setRequired for that purpose.
Also, a field should not be invalidated before the user has even visited it.
Steps to reproduce:
add(new EmailField());It's because empty string doesn't match the email-pattern. Empty string should not be invalidated as invalid email address, as we have
setRequiredfor that purpose.Also, a field should not be invalidated before the user has even visited it.