InputNumber Component: Unable to enter numbers if minFractionDigits and maxFractionDigits are set to null #15256
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
When an inputNumber control is used, with the minFractionDigits and maxFractionDigits both explicitly set to null, then it is not possible to enter any number in the text box
For example, the html being used is this:
<p-inputNumber mode="decimal" [minFractionDigits]="minFractionDigits" [maxFractionDigits]="maxFractionDigits"> </p-inputNumber>
In the angular component, the relevant properties are set as follows:
In this case, the textbox field does not accept numbers.
If the html is changed to remove the two properties altogether, then it works as expected. However "null" is meant to be the default value, and so you would expect it to work then the properties are set to this
Issue occurs in PrimeNg 17.13.0 but not in 17.12.0 (and all earlier versions).
Environment
Windows 10
Reproducer
https://stackblitz.com/edit/frgggh?file=src%2Fapp%2Fdemo%2Finput-number-numerals-demo.html
Angular version
17.3
PrimeNG version
17.13
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.19.0
Browser(s)
Edge
Steps to reproduce the behavior
Use a p-inputNumber component where the minFractionDigits and maxFractionDigits are explicitly set to null
Attempt to type in the text box
Expected behavior
Textbox accepts numbers
The text was updated successfully, but these errors were encountered: