p-inputnumber: multiple problems when input number looses focus #15014
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
The following problems occur when p-inputnumber looses focus (on blur)
The following video is of the PrimeNG p-inputnumber v17.10.0 demo and shows issue 1)
inputNumberNullPointerException.mov
The following video is of the reproducer I created and shows issue 2)
inputNumberFocusChangesModelFromNumberToString.mov
I believe this bug was caused by PR #14871
Environment
windows and mac os
Reproducer
https://stackblitz.com/edit/h7br3x
Angular version
17.2.2
PrimeNG version
17.10.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
21.4.0
Browser(s)
chrome, firefox, and safari
Steps to reproduce the behavior
To reproduce issue 1)
To reproduce issue 2)
-- "Input value" will be the same value as the p-inputNumber field (good)
-- "Input value type" will be "number" and have a green background color (good)
-- "Input value" will be the same value as the p-inputNumber field (good)
-- "Input value type" will be "string" and have a red background color (bad)
Expected behavior
For issue 1), no exception should be generated
For issue 2), the input value type should not change from a number to a string
The text was updated successfully, but these errors were encountered: