primereact icon indicating copy to clipboard operation
primereact copied to clipboard

InputNumber: Cut is not working anymore

Open mpressmar opened this issue 1 year ago • 1 comments

Describe the bug

In earlier versions of PR cutting the entire value with the key combination from an InputNumber field removed the value, now it leaves part or the entire value in the field.

In the Stackblitz linked, enter a number such as "12", select the entire string and hit the keyboard combination to cut.

Also: Enter a number such as "12345", and try doing it twice, the second time cutting won't have any effect.

I couldn't find any workaround for this issue as all the onChange/onValueChange handlers emit the incorrect value.

Reproducer

https://stackblitz.com/edit/micugn-eue6m2?file=src%2FApp.jsx

System Information

Primereact 10.8.0, Linux Mint, Firefox

Steps to reproduce the behavior

No response

Expected behavior

No response

mpressmar avatar Aug 13 '24 07:08 mpressmar

Most likely related to the Android keypress fixes...

melloware avatar Aug 13 '24 11:08 melloware