-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Cleave.js] Extra symbol is added after input has lost focus (if you type more than the mask's limit) #1907
Comments
Probably is something about Vue 2.6.x because the doc is working with Vue 2.5.x |
Found a solution? |
It seems the problem is not only with Buefy, but with Vue in general (nosir/cleave.js#459, https://forum.vuejs.org/t/custom-directive-not-working-well-with-last-character-cleave-js-value-sync/63990). |
Hi all, I think this can fix this problem temporarily
Hope can see Cleave.js fix it in the future |
Aaaah, I was looking forward to see this kind of fix! But unfortunatly it doesnt really fix this issue because the extra symbol still makes it into the variable. It is just not getting displayed anymore! And that is actually even worse, because the user doesnt know about what is going on, because he doesnt see the extra symbol anymore! You can check on that when you put a watcher on the variable you are writing to! |
Just figured a workaround for this... plain simple, just dont use v-model! Use 2 way binding instead like mentioned here... Example: In your script: |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Overview of the problem
Buefy version: 0.8.6
Vuejs version: 2.6.10
OS/Browser: macOS/Chrome
Description
Extra symbol is added after input has lost focus (if you type more than the mask's limit)
Steps to reproduce
The weird thing is that I can reproduce this bug on Codepen and locally.
But on docs page everything works fine.
The text was updated successfully, but these errors were encountered: