Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Inconsistent email field state validity #1999

@joseym

Description

@joseym

It seems that the field state :invalid isn't always getting set for invalid emails.

see this fiddle: http://jsfiddle.net/joseym/bjpNy/

If you enter:

  1. 👍 email@mail.com: Valid Form, Valid Field, No invalid state
  2. 👍 email@mail.: Invalid Form, Invalid Field, Invalid state
  3. 👍 email@mail.co: Valid Form, Valid Field, No invalid state
  4. 👎 email@mail: Invalid Form, Invalid Field, no invalid state
  5. 👎 email@mail.c: Invalid Form, Invalid Field, no invalid state

The user can get around this by mimicking their input:invalid classes or adding .ng-invalid to their invalid classes but it seems like the input states should correspond with the ng-invalid class that is applied to the input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions