ansman/validate.js

input with [type="number"] has a non numeric value for `length`

Opened this issue · 1 comments

FrDH commented

Trying to apply the numericality validation on an input with [type="number"], but getting the error in the console:

myNumberField has a non numeric value for length

Meaning, the value should be converted into a string before trying to do .length on it.