primeng
primeng copied to clipboard
InputNumber cannot set value when format property is false
I'm submitting a ... (check one with "x")
[X] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35
Plunkr Case (Bug Reports)
https://stackblitz.com/edit/github-t9sujt?devtoolsheight=33&file=src/app/app.component.html
Current behavior
An error is shown in the console when typing in a number:
Error: newValue.slice is not a function
Expected behavior
No error should be thrown.
Minimal reproduction of the problem with instructions
If you set format to false, you get an error when typing in a number. The problem can be reproduced with this simple example:
<p-inputNumber [min]="8" [max]="20" [showButtons]="true" [ngModel]="9" [format]="false"></p-inputNumber>
Please tell us about your environment:
- Angular version: 10.1.4
- PrimeNG version: 10.0.2