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.

input[number] throws required-validation-error instead of number-validation-error #6955

Closed

Description

@donaldpipowitch

Example straight from the docs: http://plnkr.co/edit/ngdoc:example-number-input-directive@snapshot?p=preview

If you write a into the input[number] it shows {"required":true,"number":false} instead of {"required":false,"number":true}.

Tested in Chrome 33.0.1750.152.

Activity

  1. caitp commented on Apr 2, 2014

    @caitp
    Contributor

    This is a known issue, there are other issues open regarding this.

    We've discussed a refactoring of form validation during the meeting, in order to decouple transformation of values from validation itself. This should play a huge role in fixing this. I think Matias is working on this, or will be in the near future.

    I'm going to close this for now because we don't really need another open issue about this, but feel free to continue the discussion at #6818

  2. donaldpipowitch commented on Apr 3, 2014

    @donaldpipowitch
    Author

    Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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