-1

When I try to add a decimal input in my field, ex: 12.54. It says the following text: Please enter a valid value. The two nearest valid values are 12 and 13.

It won't let me type decimal inputs in my field ....

How do I solve this issue?

1 Answers1

0

Hard to tell without the code, but most likely, you need to add the step attribute. Try in this snippet and notice that the second input works

<form>
<input type="number" min=1 max=10/>


<input type="number" step="0.01" />
<button type="submit" >Submit</button>
</form>
aprouja1
  • 1,800
  • 8
  • 17