Skip to content
This repository has been 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

Closed
infowebster opened this issue Jul 14, 2014 · 4 comments
Closed

Comments

@infowebster
Copy link

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.

@garyranson
Copy link

I've also noticed issues relating to validation in the beta.15.

For example ...

http://plnkr.co/edit/nVTcCn8y5k0t6olRJFHP?p=preview

input marked with "ng-required" does not work - but strangely "required" does.

@Narretz
Copy link
Contributor

Narretz commented Jul 15, 2014

dupe of #7967

@Narretz Narretz closed this as completed Jul 15, 2014
@Narretz
Copy link
Contributor

Narretz commented Jul 15, 2014

@garyranson If you think this is a bug, please open a new ticket

@rastislavcore
Copy link

Yes is it big bug, some other mention there: #8215

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants