Skip to content

Empty non-required EmailField is invalid (also initially, before the first visit) #1645

Description

@pekam

Steps to reproduce:

  1. add(new EmailField());
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions