primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Component: InputNumber - Control update on strategy is ignored

Open MarcinBorowski95 opened this issue 3 years ago • 3 comments

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

  1. Create a control with updateOn strategy set to 'blur'
  2. Use InputNumber component to show the control
  3. Start inputing a number
  4. Each key press causes the control to be updated

Expected behavior

Control is updated only on blur

MarcinBorowski95 avatar Mar 28 '23 07:03 MarcinBorowski95

I think it's a duplicate 12673

volvachev avatar Mar 29 '23 05:03 volvachev

Still an issue in 15.3.0

neergaard79 avatar Mar 31 '23 07:03 neergaard79

Fixed in https://github.com/primefaces/primeng/pull/15948

cetincakiroglu avatar Jul 04 '24 08:07 cetincakiroglu