primereact icon indicating copy to clipboard operation
primereact copied to clipboard

InputNumber: change event not triggered from browser suggestions

Open Kimblis opened this issue 1 year ago • 3 comments

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

Kimblis avatar Apr 09 '24 10:04 Kimblis

This is not specific to inputNumber but the browser behavior: https://stackoverflow.com/questions/55244590/autofill-does-not-trigger-onchange

melloware avatar Apr 09 '24 12:04 melloware

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 avatar Oct 04 '24 22:10 schotime

@schotime just check the source code and PR's are welcome.

melloware avatar Oct 05 '24 11:10 melloware