-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
Issue
Lets say you have a field for a username and set the min/max to 3 and 10, entering any A-Z character will work as expected but entering "11" as in the number 11 will say the input is too big for that field, it thinks you're entering a number literal instead of plain text so 11 >= 10 instead of (2 >= 11, the length of the input text). You handle both numbers and strings with the same min/max validation but there isn't an option to specific if you want a number or a string.
Solution?
Add a number type strictly for numbers only and keep the text type as stringifed text. Entering anything other than a number will remove that character and display a tooltip to let the user know only numbers are allowed.
Metadata
Metadata
Assignees
Labels
No labels