Skip to content

[BUG] - Validation problem to number under 0.1 #57

Description

@rodrigues-t

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions