I'm trying to validate a field with yup.number( ).max(5) and doesn't work. The field only allows you to type 1 character, after the second one starting showing error.
How to reproduce this problem:
123456Too Long! after the second character.max isn't the number of digits, its the size of the number, so 12 > 5
Ohhh! but for string( ) method it works like a length validation, right?
Most helpful comment
maxisn't the number of digits, its the size of the number, so12>5