Phoenix form e-mail validation

Can you give more detail on this? Do you get any validation message at all? Do you see an error? Does it submit the form without checking the regex?

What browser are you using? What are the exact steps you are trying?

I just tried an minimal example at https://jsfiddle.net/uq65mwgh/4/

The html i used is this:

<form action="">
  <input type="email" pattern="a.*">
  <input type="submit">
</form>

This works for me in the following way:

  • if i click submit with an empty input field I get the email validation error
  • if i enter something like foo@bar.de and click on submit I get the validation error from the regex (the regex simply checks for an email address starting with the character a
  • if i enter afoo@bar.de the browser submits the form