maxLength of primeng input number issues when typing zero #2959
Unanswered
wesleysturaro
asked this question in
PrimeNG
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently I am using the PrimeNG at 17.18.6 and the input number seems to not respect the maxLength sometimes, my input is like this:
<p-inputNumber class="mr-3"
[(ngModel)]="simulationAccumulation.accumulation_percentage"
[allowEmpty]="true"
mode="decimal"
inputId="locale-user"
[minFractionDigits]="1"
[maxFractionDigits]="2"
[maxlength]="5"
[min]="0"/>
And if I type for example 235,0 the input works properly. But if type 230,0 and then before the comma I type another 0, he will change it from 230,0 to 2.300,0 and this is a length of 6 or 7 instead of 5.
Here is a short video that I recorded to show it:
Video.sem.titulo.Feito.com.o.Clipchamp.mp4
Beta Was this translation helpful? Give feedback.
All reactions