0

Now, I'm using the redux-form to validate the form. AND I have input type number that need to enter just number (0-9) by range is 1-100 not allowed 'e'. I would like user can enter the values from keyboard or by click.

when I enter 'e', it would be show in UI but values in redux-state is " " (blank)

My question is how am I avoid 'e' typo from this case?

my code

          <Field 
            name="weight" 
            type="number"
            component={NumberField} 
            label="Weight(%)" 
            width={250}
           />

Thank you

ppppp
  • 199
  • 1
  • 2
  • 15

0 Answers0