Component: InputNumber unneeded update model on blur #15799
Labels
LTS-FIXED-15.4.22
LTS-FIXED-16.9.12
LTS-PORTABLE
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When using p-inputNumber component with updateOn 'blur' strategy, the model is updated on blur even when no changes were made.
This causes many unwanted notifications to the form and potentially to other controls.
My use case is in a reactive form, though this behaviour also happens with ngModel due to the else if in this method:
Environment
Angular 17
PrimeNG 17.17.0
Reproducer
No response
Angular version
17.3.x
PrimeNG version
17.17.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.x
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
I expect what already happens on updateOn 'change', i.e., when the value hasn't changed there is no need to call onModelChange
The text was updated successfully, but these errors were encountered: