angular-input-masks
angular-input-masks copied to clipboard
Max attribute doesn't work
I setted max="100" but I could type something greater than.
In which input-mask? Number?
right here:
<input type="text" ng-model="vm.model.Percentual" class="form-control input-sm" ui-number-mask max="100">
There is a unit test that checks this feature, take a look: https://github.com/assisrafael/angular-input-masks/blob/master/src/global/number/number.test.js#L66
Can you build a demo (like plunker) that shows your problem?
I have the same issue :(
<input type="text" class="form-control input-sm" ng-model="vm.review.value" ui-number-mask min="0" max="10">
+1
Same issue. Apparently the input is flagged as invalid, but that doesn't prevent the user from entering a higher number. Could someone confirm what I just said?
Thanks
Same issue here, any update on this?
+1
+1
+1
The following plunker shows that neither min
or max
attribures are currently working.
http://plnkr.co/edit/NvPGEzr8twSrvoYQuQSv?p=preview
If I'm correct, the implementation doesn't prevent you to type numbers smaller or bigger than min and max. According to the code and unit tests, it will validate if the value respects the thresholds and return true or false.