validate.js
validate.js copied to clipboard
input with [type="number"] has a non numeric value for `length`
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.
Could be fixed by adding .toString() to
https://github.com/ansman/validate.js/blob/master/validate.js#L792