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
When I provide suffix for input number with mode=decimal then I cannot provide fraction digits. After enter dot and provide fraction digit the field will cleared.
Using v17.18.9 and I can confirm the issue is still present: if minFractionDigits is set to 0 and you use a suffix typing the number correctly is almost impossible, the cursor starts jumping around or not responding at all.
Describe the bug
When I provide suffix for input number with mode=decimal then I cannot provide fraction digits. After enter dot and provide fraction digit the field will cleared.
<p-inputNumber suffix="Mg" mode="decimal" [maxFractionDigits]="5">
But when I set minFractionDigits more than 0 then problem is gone.
<p-inputNumber suffix="Mg" mode="decimal" [minFractionDigits]="2" [maxFractionDigits]="5">
Environment
Error repeated regardless of environment settings. Also repeats on sample code in documentation
Reproducer
https://stackblitz.com/edit/gv83do?file=src%2Fapp%2Fdemo%2Finput-number-numerals-demo.html
Angular version
17.0.9
PrimeNG version
17.6.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.10.0
Browser(s)
Chrome 121
Steps to reproduce the behavior
The sample video describing steps:
https://github.com/primefaces/primeng/assets/1591522/8fa99b46-ca8d-4a09-af2d-14550c9b1737
Expected behavior
Values after the decimal point should be able to be entered.
The text was updated successfully, but these errors were encountered: