-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
data-maska-eager weird behavior #128
Comments
P.S. You can reproduce the same behavior editing the 'phone' example in the documentation. |
Thanks. Should be fixed in v2.1.6 |
@beholdr Sure is. Thanks for the quick fix! :) |
Hello, Here's the code I'm using to reproduce (based of the demo code) :
When characters are deleted from the input after the "fixed" ones are reached, they're not deleted but replaced (in this example) by a 2. |
@gsouveton Just to be sure. Have you tried deleting your lock file and node modules and reinstalling? |
@gsouveton @beholdr Nevermind. I tried this on my end and it is still happening with the example you provided. I tried swapping the slashes with dashes to see if that helped and the same thing. This issue needs to be reopened. |
Well, yes. Confirming this behaviour with eager mask, but I'm not sure I could easy fix that. For this I should change logic of the eager-mask processing. I will reopen the issue, but currently advice not to use eager mode with such masks now. |
Describe the bug
Hello,
I'm trying to implement this in a vue project. However, after trying to use the "eager" option, I've come across some strange behavior.
Entering the value creates the mask as expected with the eager behavior, but upon deleting the characters, at some point the value starts to become garbled and characters from the beginning of the mask option are being added into the input.
Steps to reproduce
Just use the eager option. In particular I'm creating a phone number input.
Reproduction link
https://stackblitz.com/edit/nuxt-starter-8swf8v?file=app.vue
The text was updated successfully, but these errors were encountered: