vuejs-tips/vue-the-mask

facing problem on removing first text

sameerkarmacharya opened this issue · 4 comments

I am facing problem when I try to remove first text of my mask input the cursor goes to the last and I cannot change the first text.
But it is working fine when I try to remove center text.

We're running into the same issue. If we try to modify portions of the text that is masked the cursor jumps to the end and starts removing from the end.

Have you been able to find a work around?

@sameerkarmacharya I wound up having to use v-mask to overcome this issue. I'll probably switch back to vue-the-mask once the bug is fixed (or I can find the time to fix it) but check out v-mask if your under a time crunch like I currently am. (https://www.npmjs.com/package/@titou10/v-mask). For us it was a drop in replacement without the bug.

This plugin have been abandoned. Give vue-input-facade a try. It has very similar interface and tokens as vue-the-mask, and I have fixed this issue as well as others.