vue-the-mask icon indicating copy to clipboard operation
vue-the-mask copied to clipboard

Ignore user typed the same char in mask

Open yoldar opened this issue 7 years ago • 2 comments

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) ### ## ##'

yoldar avatar Dec 18 '17 09:12 yoldar

Anyone had the same issue?

yoldar avatar Jan 13 '18 00:01 yoldar

a little workaround that i made - change mask from +7 (###) ### ## ## to +# (###) ### ## ## and on first input force prepend '7' to the value.

VadimGorbenko avatar Feb 15 '22 05:02 VadimGorbenko