v-mask not working correctly with veutify input
See original GitHub issueI’m using veutifyjs text-input to show phone number. I have a button to assign phone number to v-model. But after assign it not change there text input. if I enter some think on text-input v-mask work. But if I assign value to v-model it not working. Also i’m tying next trick but its not have any difference.
<v-text-field
v-model="form.phone_number"
v-mask="'(###) ###-####'"
dense
outlined
autocomplete="new-password"
hide-details="auto"
label="Phone Number"
placeholder="Phone Number"
></v-text-field>
<v-btn color="warning" @click="dataupdate()">Add</v-btn>
dataupdate() {
this.$nextTick(() => {
this.form.phone_number = '4032223344'
})
},
Issue Analytics
- State:
- Created 2 years ago
- Reactions:10
- Comments:7
Top Results From Across the Web
v-mask not working correctly with veutifyjs input - Stack Overflow
I have a button to assign phone number to v-model. But after assign it not change there text input. if I enter some...
Read more >v-mask not working correctly with veutifyjs input-vuetify.js
[Solved]-v-mask not working correctly with veutifyjs input-vuetify. js. Set it as the v-mask value: <v-text-field v-model="form.
Read more >Vuetify mask - CodePen
Insecure Resource. The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https....
Read more >Upgrade Guide — Vuetify
Do not install node-sass, it is not the correct library. ... The selected prop is now input-value or v-model; The close event is...
Read more >How to transform input values using v-mask when building ...
In this article, we are going to be looking at input masking. ... You can clearly see that the first example is not...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
A workaround for this is to put a v-if on the Vuetify text field and toggle it after setting the model value like this:
It’s a hack but the directive is not hooking to the model and listening for value changes correctly.
Using of v-bind:key solved the issue, great hint!