primeng icon indicating copy to clipboard operation
primeng copied to clipboard

p-inputNumber: onInputBlur NPE

Open DbkMG opened this issue 2 years ago • 5 comments

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

  1. go to https://primeng.org/inputnumber
  2. scroll down to Float Label Example
  3. focus inputfield
  4. blur
  5. check webdev-console

Expected behavior

No NPE

DbkMG avatar Mar 01 '24 19:03 DbkMG

The problem here that model after blur become string. It wasn't happen before

adcore-dev avatar Mar 02 '24 02:03 adcore-dev

As @adcore-dev said, the model becomes string. This problem broken my app and made me downgrade to 17.8.0 until fixed

vigalo avatar Mar 02 '24 07:03 vigalo

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.

psarno avatar Mar 04 '24 10:03 psarno

PR #15015 fixes this issue and issue #15014 and issue #15017

rosenthalj avatar Mar 12 '24 08:03 rosenthalj

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.

cetincakiroglu avatar Mar 13 '24 12:03 cetincakiroglu