primereact
primereact copied to clipboard
InputNumber: change event not triggered from browser suggestions
Describe the bug
Input number change does not get triggered from browser suggestions. If you then type stuff by keyboard the state change gets trigerred, if you use suggestions once again it doesnt. And the value of form value remains undefined.
Reproducer
No response
PrimeReact version
10.6.2
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
Chrome
Steps to reproduce the behavior
https://github.com/primefaces/primereact/assets/46688616/f7a1489b-3658-4ff4-8f8c-3f38073dbc5a
Expected behavior
Should trigger onChange value and treat as keyboard input
This is not specific to inputNumber but the browser behavior: https://stackoverflow.com/questions/55244590/autofill-does-not-trigger-onchange
Is onInput available on this component then? I'm finding the same thing on the mobile chrome browser where it has the clipboard shortcut above the keyboard. It seems to work for InputText just not for InputNumber.
@schotime just check the source code and PR's are welcome.