Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-6547

EmailFieldValidatorFactory does not allow empty fields

    XMLWordPrintable

Details

    Description

      Steps to reproduce 

      Create a dialog with:

          optionalMail2:
            label: contact.fields.optionalMail2.label
            $type: textField
            required: false
            validators:
              emailValidator:
                $type: emailValidator
                errorMessage: TestEmailValidator
      

      Expected results

      If required is set to false, an empty field should be allowed.

      Actual results

      EmailValidator always returns an error on empty fields.

      Workaround

      Use a custom RegexpValidator

      Development notes

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                miruela Mercedes Iruela
                marc.johnen Marc Johnen
                Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD