We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<input type="text" class="form-control" id="phone" name="phone" v-mask="phone.mask" :placeholder="phone.placeholder" required> setPhoneCode: function (country) { switch (country) { case 'rus': this.phone.flag = '🇷🇺 '; this.phone.code = '+7'; this.phone.placeholder = '(___) ___-__-__'; this.phone.mask = '(999) 999-99-99'; break; case 'kzt': this.phone.flag = '🇰🇿 '; this.phone.code = '+7'; this.phone.placeholder = '(___) ___-__-__'; this.phone.mask = '(999) 999-99-99'; break; case 'uk': this.phone.flag = '🇺🇦 '; this.phone.code = '+380'; this.phone.placeholder = '(__) ___-__-__'; this.phone.mask = '(99) 999-99-99'; break; case 'by': this.phone.flag = '🇧🇾 '; this.phone.code = '+375'; this.phone.placeholder = '(__) ___-__-__'; this.phone.mask = '(99) 999-99-99'; break; } }
Don't work v-mask="phone.mask" when i change country What i can do?
The text was updated successfully, but these errors were encountered:
Hello there,
I have the same problem that the v-mask directive is not reactive. Have you found a solution?
Sorry, something went wrong.
@Afluxx I added a key attribute based on the mask so it forces a re-render
Thanks! I'll try that out
No branches or pull requests
Don't work v-mask="phone.mask" when i change country
What i can do?
The text was updated successfully, but these errors were encountered: