uNmAnNeR / imaskjs

vanilla javascript input mask
https://imask.js.org
MIT License
4.96k stars 258 forks source link

Pattern bug #1043

Closed stefanarsicdev closed 5 months ago

stefanarsicdev commented 5 months ago

Describe the bug When i use pattern option in my code and use pattern - 'd{/}m{/}Y', for some reason my last character is not showing up.

To Reproduce https://stackblitz.com/edit/stackblitz-starters-ydu5gq?file=index.html

Expected behavior I expected to after input my characters i change mask and im able to change every piece of mask on that spot, so that my cursor doesnt position on end of the input. In this case it works but it doesnt allow me to enter last character. As i can see problem should be in the pattern, is it becouse of my format of pattern or this pattern isnt an a option?

patternbug

Environment:

stefanarsicdev commented 5 months ago

I found the solution.

Problem resolved: https://stackoverflow.com/questions/73738621/issue-with-imaskjs-data-formatting-forward-slashes