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

[BUG] - Validation problem to number under 0.1

Open rodrigues-t opened this issue 4 years ago • 0 comments

Describe the bug I set minValue to 0.01 and when a try to type '0.01' the component sets the value to '0' after I enter the zero after the point ('0.0'). So, I never can type a number less than 0.1 if the min value is not zero. In another hand, with min button it works perfectly so that I can go from 0.1 to 0.09 just touching the min button.

<NumericInput valueType={'real'} minValue={0.01} maxValue={2} step={0.01}
value={dose} onChange={value => setDose(value)} />

Enviorment:

  • Version: 1.8.3
  • React Native version: 0.61.5
  • Device: Nexus 5X API 27 (emulator)

rodrigues-t avatar Mar 06 '20 00:03 rodrigues-t