Open
Description
After some testing I found some users found it unintuitive to only type numbers for masked dates. (they would try to type in the slashes). If there is some functionality I didn't understand that supports this in the docs let me know, otherwise I found this solution.
inside of handleCurrentValue
after the for loop add
if (value.length < l) { if (placeholder[value.length].match(/\W/)) { newValue += placeholder[value.length]; } }
Example: 12/25 -> 12/25/
Metadata
Metadata
Assignees
Labels
No labels