uNmAnNeR / imaskjs

vanilla javascript input mask

Home Page:https://imask.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unexpected behavior of date and month input.

loonycv opened this issue · comments

Describe the bug
When we have second number of date more or equal than 2 (12-19, 22-29). We can't change it to date starts with 3 (30, 31) if we put caret on the start of date. In the 'pad' autofix the same behavior.
The same for month when we second number more or equal than 3 (03-09). We can't change it to date starts with 1.

To Reproduce
To reproduce it try type 3 on the start of date input.
https://codesandbox.io/s/imask-date-pd9tsv

Expected behavior
For 'pad' autofix need show '03' when we type '3' and '01' for month when we type '1'.