Component: InputNumber does not validate max on blur #14630
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
InputNumber used to validate the input against the max value before triggering the blur event.
E.g. max value is 5, the user types in 10, InputNumber used to / should trigger its blur EventEmitter only after having validated the user input against the max value.
Somehow, the blur emit got moved upwards a couples of lines in this commit:
5452e19#diff-d15eb5f971fcc845ef140641bb6498419d87b06832dd22180381101c84f55a70R1366
OnBlur should emit after validateValue() and updateModel() so that blur listeners get the correct number value from the input field.
Environment
see versions below
Reproducer
No response
Angular version
16.2.0
PrimeNG version
16.9.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18
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: