uNmAnNeR / imaskjs

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

How to prevent changing the last character in the date range? #1075

Open lordenas opened 2 months ago

lordenas commented 2 months ago

Describe the bug I want to make a mask for a date range. But when I delete the last character in the start date, it is replaced by a digit from the end date.

To Reproduce

CodeSandbox

record

Expected behavior Expected, replacement with placeholderChar

Environment:

Additional context Add any other context about the problem here.