Reactive Forms issue with p-InputNumber and updateOn:'blur'. Issue is also there for Template Driven forms when explicitly using [ngModelOptions]="{ updateOn: 'blur' }" #14842
Labels
Resolution: Stale
Issue or pull request is inactivity and unfortunately it will be *closed* if there is no response
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Describe the bug
When using reactive forms with primeng version 15.3.0, we noticed the valueChanges property of the reactive form gets triggered as soon as the user inputs a value in the input field even though the updateOn property is set on the control.
value: new FormControl(1234, { updateOn: 'blur' }),
Expectations: If updateOn blur is set, the valuechanges should not get triggered till the user blurs the control.
We also noticed the issue when using Template Driven Forms and explicitly setting [ngModelOptions]="{ updateOn: 'blur' }".
Environment
N/A
Reproducer
No response
Angular version
15.1.5
PrimeNG version
15.3.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.17.0
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: