No Code Attached Yet
avatar angieradtke
angieradtke
22 Jul 2021

The new form-control css -classes are really great. They give us the possibility to improve the UX significantly.
Unfortunately there is a small problem with the email-field.
Even if the input is not a valid email address the field gets the css-classes

class="form-control validate-email required valid form-control-success"

avatar angieradtke angieradtke - open - 22 Jul 2021
avatar joomla-cms-bot joomla-cms-bot - change - 22 Jul 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 22 Jul 2021
avatar Quy
Quy - comment - 22 Jul 2021

I am not able to reproduce. Please advise an invalid email address to test.

avatar angieradtke
angieradtke - comment - 23 Jul 2021

i f we type in mail@ without a mailending it is validated true

avatar brianteeman
brianteeman - comment - 23 Jul 2021

Can not replicate

With a valid email address I have
<input type="email" inputmode="email" name="jform[contact_email]" class="form-control validate-email required valid form-control-success" id="jform_contact_email" value="" size="30" autocomplete="email" required="" aria-invalid="false">

With an invalid email address eg mail@ I have
image

<input type="email" inputmode="email" name="jform[contact_email]" class="form-control validate-email required form-control-danger invalid" id="jform_contact_email" value="" size="30" autocomplete="email" required="" aria-invalid="true">

avatar angieradtke
angieradtke - comment - 23 Jul 2021

Type in a.radtke@gjgjhh something behind the @

avatar brianteeman
brianteeman - comment - 23 Jul 2021

a.radtke@gjgjhh

that is a valid email address on internal networks

avatar brianteeman
brianteeman - comment - 4 Aug 2021

This should be closed as it is working correctly and the issue is that the user expected the validation to be different than it is

avatar angieradtke
angieradtke - comment - 4 Aug 2021
avatar brianteeman
brianteeman - comment - 4 Aug 2021

This comes up every few years. It is perfectly valid to have an email address in the form user@localdomain
There is a reason there are standards and we shouldnt try to re-invent them

avatar brianteeman
brianteeman - comment - 15 Feb 2022

This should be closed for the reasons stated above

avatar Quy Quy - change - 15 Feb 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-02-15 10:15:10
Closed_By Quy
Labels Added: No Code Attached Yet
Removed: ?
avatar Quy Quy - close - 15 Feb 2022

Add a Comment

Login with GitHub to post a comment