primeng icon indicating copy to clipboard operation
primeng copied to clipboard

ngModel is not working properly on p-input number

Open hamz4arif opened this issue 4 years ago • 4 comments

ngModel is not working properly in p-input number it updates the value on focus out not on every input like other controls

hamz4arif avatar Dec 09 '21 06:12 hamz4arif

I have a directive that verifies minimums and maximums (min and max of inputNumber truncate which I believe is a bad user experience). This directive used to trigger on ngModel update after every keystroke so the maximum error appeared as soon as the value was exceeded. it now does it only on blur.

waratah avatar Jan 11 '22 11:01 waratah

https://github.com/primefaces/primeng/pull/11093

waratah avatar Jan 19 '22 09:01 waratah

Hi,

So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you reopen the issue so we can include it in our roadmap? Please don't forget to add your feedback as a comment after reopening the issue. These will be taken into account by us and will contribute to the development of this feature. Thanks a lot for your understanding!

Best Regards,

mertsincan avatar Nov 09 '22 20:11 mertsincan

this still an issue when using it with Model Driven Forms - formControlName the validation of the form only happens onBlur

hmoreras avatar Mar 16 '23 23:03 hmoreras