InputNumber: When using the InputNumber with the built in spinner buttons, "onValueChange" is called before "onChange". #3913
Labels
Type: Bug
Issue contains a defect related to a specific component.
Milestone
Describe the bug
Contrary to what is understood in the documentation, when using the InputNumber with the built in spinner buttons, the "onValueChange" event is called before the "onChange" event.
Reproducer
https://codesandbox.io/s/primereact-test-forked-mf67x0
PrimeReact version
8.7.3
React version
18.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
Chrome version 108.0.5359.125
Steps to reproduce the behavior
When interacting with the spinner buttons see in the console how "onValueChange" is called before "onChange" when it must be the other way around.
Expected behavior
"onChange" must be called before "onValueChange" as it happens if the built in spinner buttons are not used.
The text was updated successfully, but these errors were encountered: