You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
can confirm, @matsko this broke with the changes to the attributes / aliasing, I believe. I'm not sure we ever figured out how we wanted maxlength to work for non-text input types, but maybe it's good enough to just convert the value to a string if it's a number?
(but yeah, why not use min/max instead of minlength/maxlength for numbers?)
In my case I need it to be id's that can could also be 0008373 or something, but I see this is not possible because the model value removes the zeroes in front. I'll use a text input with a regex instead in my case.
The min/max will indeed satisfy for a minimum length of a number (value).
Use viewValue for minlength/maxlength validation if model value is not a string.
This allows ngMinlength and ngMaxlength to be used for number inputs.
Closesangular#7967Closesangular#8811
The angular minlength of a number input isn't working as of Angular 1.3.0 beta 12.
I've created the bug in plunker:
http://plnkr.co/edit/vF3DMsbqIbm7EZbSvfQT?p=preview
The text was updated successfully, but these errors were encountered: