vue-the-mask
vue-the-mask copied to clipboard
Ignore user typed the same char in mask
Is that possible to ignore user typed the same char in mask? My mask is v-mask="'+7 (###) ### ## ##'" When user types '708' it just fills '+7 (08#) ### ## ##' but goal is to fill '+7 (708) ### ## ##'
Anyone had the same issue?
a little workaround that i made - change mask from +7 (###) ### ## ##
to +# (###) ### ## ##
and on first input force prepend '7' to the value.