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

EmailFieldValidatorFactory does not allow empty fields

XMLWordPrintable

      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

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD