p-inputNumber: onInputBlur NPE
Describe the bug
p-inputNumber onInputBlur-Method throws NPE if value==null
Environment
chrome browser
Reproducer
No response
Angular version
17.2.3
PrimeNG version
17.9.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.13.0
Browser(s)
No response
Steps to reproduce the behavior
Reproducable in primeng showcase
- go to https://primeng.org/inputnumber
- scroll down to Float Label Example
- focus inputfield
- blur
- check webdev-console
Expected behavior
No NPE
The problem here that model after blur become string. It wasn't happen before
As @adcore-dev said, the model becomes string. This problem broken my app and made me downgrade to 17.8.0 until fixed
I just came here to report this same thing, I couldn't find a suitable workaround.
I'm going to have to downgrade also. It seems there is a brand new PR for it though.
PR #15015 fixes this issue and issue #15014 and issue #15017
Hi,
Thanks for reporting the issue, this issue has been fixed by @rosenthalj in https://github.com/primefaces/primeng/commit/9b0518ed535b63fbeb18640b968e4c99fcf228d6
This issue is superseded by https://github.com/primefaces/primeng/issues/15014
Closing the issue.