react-native-numeric-input icon indicating copy to clipboard operation
react-native-numeric-input copied to clipboard

not changing local state when parsed value is the same of the previous

Open lodatol opened this issue 2 years ago • 0 comments

we did this small change to allow user input number like 0.01, with the current implementation this is not possible as 0.00 would be resetted to 0. Since 1.01 is equal to 1.0100 just skipping the state update when the real values are the same is enough. In addition I forwarded the original text to the change handler as second parameter, this may be useful for additional logic and would not impact the currents implementations that expect a real number as first parameter of the onChange

lodatol avatar Feb 03 '23 15:02 lodatol