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.

Number field validation broken #7936

Closed
Closed

Description

@stenlee

Steps to reproduce: just try to fill non number chars in example at https://docs.angularjs.org/api/ng/input/input%5Bnumber%5D
and check validation result. In myForm.input.$error collection the "number" property is always false.

Activity

  1. VictorQueiroz commented on Jun 22, 2014

    @VictorQueiroz
    Contributor

    Try type "9.9999999999999999e+23" or type "99999999999999999999999999999999999999999999" and press the up button, and you will see.

  2. stenlee commented on Jun 22, 2014

    @stenlee
    Author

    I think it should validate as NOT number also NOT Numbers .... ex "abc"

  3. caitp commented on Jun 22, 2014

    @caitp
    Contributor

    you're right, obviously --- I think this is a regression though, either in Chromium or in angular --- because this was definitely working at the time this was checked in

  4. caitp commented on Jun 22, 2014

    @caitp
    Contributor

    I'm looking into it

  5. caitp commented on Jun 22, 2014

    @caitp
    Contributor

    Yeah I think I can write a fix for this quickly, I really, REALLY wish Ian had plotted the constraint validation api better :(

  6. stenlee commented on Jun 22, 2014

    @stenlee
    Author

    Thank you much Caitlin.

  7. caitp commented on Jun 22, 2014

    @caitp
    Contributor

    I'll see if that changes fixes the docs page once it builds on the CI server, I think it should

  8. caitp commented on Jun 23, 2014

    @caitp
    Contributor

    http://ci.angularjs.org/job/angular.js-caitlin/393/artifact/build/docs/api/ng/input/input%5Bnumber%5D (yes it will still incorrectly report 'required' error --- that is going to take a bit more work to fix, and that's been planned for a while)

  9. self-assigned this
    on Jun 23, 2014
  10. added a commit that references this issue on Jul 16, 2014
    40e7594
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions