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.

ng-maxlength/ng-minlength validation not working for input type text #8186

@infowebster

Description

@infowebster

We just updated the angular libraries from 1.3.0-beta.5 to 1.3.0-beta.15 and noticed that the input fields with input type number and min- or maxlength validation set are always invalid.

When you use the Plunker of the api reference (https://code.angularjs.org/1.3.0-beta.15/docs/api/ng/input/input%5Bnumber%5D) and add the attributes ng-minlength or ng-maxlenght it can be reproduced that starting with beta.12 the input field will be always invalid.

I looks like that 'value.length' in the min/maxlength directive is invalid as the int value has no length.

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