Component: InputNumber - Control update on strategy is ignored
Describe the bug
When using the InputNumber component with angular reactive forms it ignores the updateOn strategy of the form control. This means that the value of the input is always updated on every change event, regardless of whether the updateOn strategy is set to blur or submit. This can cause unwanted side effects, such as triggering validation errors or setting the control state to dirty when unwanted.
Environment
All environments from dev to prod
Reproducer
No response
Angular version
15.2.4
PrimeNG version
15.2.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.12.1
Browser(s)
Chrome, Egde
Steps to reproduce the behavior
- Create a control with updateOn strategy set to 'blur'
- Use InputNumber component to show the control
- Start inputing a number
- Each key press causes the control to be updated
Expected behavior
Control is updated only on blur
I think it's a duplicate 12673
Still an issue in 15.3.0
Fixed in https://github.com/primefaces/primeng/pull/15948