Email Validator

#1

Hi Radzen Team,
Do you have an example of how to use the email validator as I was unable to find an example?
I have an optional email field with a validator attached. If text is entered the validator works as expected however if the email field is blank the invalid email is still displayed and it is not possible to submit the form.
I did try using textbox Change Event to set a variable bound to the validator visible property based upon text length but did not work.

0 Likes

#2

Indeed it seems the default Angular email validator checks if the value is not empty first. This makes it not allow empty values as valid emails. We will address that in the next Radzen release.

0 Likes

#3

This has been addressed in Radzen 2.14.2. The EmailValidator will not trigger on empty values any more.

0 Likes

#4

Thanks @korchev
That fixes the issue.

0 Likes