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 was archived by the owner on Apr 12, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
maxlength directive doesn't work with numbers #8811
The maxlength directive is broken when used with Number model values in the current Beta. When I try using timepicker from angular-bootstrap, the hours/minutes inputs become invalid as soon as they reach values >= 10. This happens because, for the sake of readability, values < 10 are prefixed with a zero and saved to the model as strings. Values >= 10 are saved as numbers, which makes this offending line in the directive:
Activity
Narretz commentedon Aug 28, 2014
This is a duplicate of #7848
Narretz commentedon Aug 28, 2014
I'll try to get someone interested in this for the next beta / RC.
caitp commentedon Aug 28, 2014
a fix for this has already been written, it's never been reviewed or merged #7968
Narretz commentedon Aug 28, 2014
The PR in question is #7968
I pushed it to the next RC.
fix(input): validate minlength/maxlength for non-string values
fix(input): validate minlength/maxlength for non-string values