With the below HTML, when I type the value 3 in the input and click on submit, Chrome (at least) shows the following error in a popup:
Please enter a valid value. The two nearest valid values are 2.0001 and 3.0001.
This doesn't make sense. I've set the minimum value to be 0.0001 and I'm entering 3 which is greater than 0.0001.
document.getElementById('form').onsubmit = function(e) {
e.preventDefault()
}
<form id="form">
<input placeholder="0.000"
id="something"
type="number"
name="something"
min="0.0001"
required>
<button type="submit">submit</button>
</form>