New Sep 18, 2024

Incorrect operation of the mask when characters overflow

Libraries, Frameworks, etc. All from Newest questions tagged vue.js - Stack Overflow View Incorrect operation of the mask when characters overflow on stackoverflow.com

I ran into a problem on nuxt 3. When using the v-mask directive on an input with this mask mask: "{+7} (000) 000 00 00" a problem arises - if you enter more characters than in the mask, then one more character is written to the value, or more precisely, the least entered character is written. enter image description here enter image description here

(https://stackblitz.com/edit/nuxt-starter-qymjcz?file=pages%2Findex.vue)Link on playback. Try to enter a lot of characters and you will see everything. If I made a mistake somewhere, let me know, I will be grateful

Scroll to top