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.
FrDH commented
Could be fixed by adding .toString()
to
https://github.com/ansman/validate.js/blob/master/validate.js#L792