[onChange] value not change when i delete negative symbol on textbox with backspace
See original GitHub issueversion 4.0.8
When typing the following: '1 then ‘2’ then ‘-’, or ‘-’ then ‘1’ then ‘2’ It would display as ‘-12’.
but when i delete negative symbol with backspace, that value cannot be change and still -12
not 12
im using onChange
props
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top Results From Across the Web
On-change not triggered when input cleared - OutSystems
Hi there,. I have an input box which is linked to an autocomplete widget. When the input box is blank, I show a...
Read more >html - Is there any way to prevent input type="number" getting ...
I can still copy paste negative values into the input field. I will look for another solution. This one doesn't work completely for...
Read more >Prevent unwanted characters in <input> | by MelkorNemesis
Say you want to delete some characters from the <input> . You press Backspace and get event.key equal to Backspace . And because...
Read more >Regular expression to allow only numbers and comma
11:52 PM mobile number validation accept numeric , Number , react allow only numbers in textbox , Regex Edit Use value and onChange...
Read more >Editing cells - TreeGrid
Cell editability. upd 13.0 <Cfg> int. Editing. [1]. If and how values of grid can be edited. It does not affect rows ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As a workaround, I decided to use
onValueChange()
only if the user is removing the negative from a number. Here is a sandbox with this working or see below for the code snippet inside our formatter wrapper.Hey all,
Nothing works but this:
Any other conclusions? If not, let me try to commit the fix pretty soon…
Best regards, Maciej