-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inputNumber is not dirty when value changes #10902
Comments
Would also be nice if it triggered the forms valueChanges like a regular text input, immediately and not only after blur. |
It only update the value after blur, on enter keyup, and with up and down arrows of keyboard. |
pull request completed. |
When this PR will be merged? |
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? Best Regards, |
I'm submitting a ...
Plunkr Case (Bug Reports)
Stackblitz: https://stackblitz.com/edit/primeng-inputnumber-demo-pujvel?file=src/app/app.component.html
Current behavior
The primeNg number input does not make the form dirty when changing the value.
The number input itself and the form becomes dirty only after the input loses focus.
Expected behavior
When changing the value of the number input, the form status (and the input status) should become dirty immediately. Similar to a regular text input.
Minimal reproduction of the problem with instructions
Type a different value in the primeNg number input -> The form does not become dirty.
However, typing in the normal text input -> The form becomes dirty.
What is the motivation / use case for changing the behavior?
The number input should behave like other inputs (e.g. a regular text input).
Please tell us about your environment:
Angular version: 12.2
PrimeNG version: 12.2
Browser: all? reproduced in Firefox 94, Chrome 96
The text was updated successfully, but these errors were encountered: