3
I have the following HTML:
<input ng-model="idade" type="number" maxlength="3" placeholder="Informe a idade">
When I go to test, the input
ignores the maxlength
and lets you type as many characters as you want. Strangely, when I change the type to tel
it works.
Someone’s been through it and they’ve solved it???
tries 'ng-maxlength'
– alan
What is the goal, which size of the value is equal to 3 digits (999) or the maximum value is 3? Type number will not put a mask keydown in the element - if you want to limit the maximum input to 999, for example, you will have to use a function.
– BrTkCa
I had already tried, and it had not worked.....
– fernandoocf