Answer the question
In order to leave comments, you need to log in
When you enter a phone number in the input, an extra last character appears in the value value. Why?
There is such a field for a phone with a mask
<input type="text" name="phone" @input="test()" class="popup__input" ref="phone" v-imask="mask">
test() {
console.log(this.$refs.phone.value)
}
mask: {
mask: '+7 (000) 000 00 00',
lazy: true,
}
Answer the question
In order to leave comments, you need to log in
The library as a whole sometimes behaves strangely and inconveniently (they often still unsubscribe from me when using the bootstrap, everything is ok, probably something from yours interferes).
In short, try this:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question