neo icon indicating copy to clipboard operation
neo copied to clipboard

examples/form/field/email/ permits invalid syntax (name@something)

Open keckeroo opened this issue 4 years ago • 1 comments

Describe the bug The email validator is permitting invalid email syntax of 'name@domain' (without the TLD)

Screen Shot 2021-05-22 at 2 53 33 PM

keckeroo avatar May 22 '21 19:05 keckeroo

https://en.wikipedia.org/wiki/Email_address#Examples

Screenshot 2021-06-03 at 20 50 53

by default, <input type="email"> will allow local domains. most of the time it makes little sense (except for intranet apps).

we can add a custom validator on the JS side.

tobiu avatar Jun 03 '21 18:06 tobiu