Answer the question
In order to leave comments, you need to log in
How to make @input or similar handler for this event work on mobile?
If on a mobile device, in particular on an android (I reproduced it on firefox and chrome), open an example from. site with documentation on vuejs in the form processing section:
https://ru.vuejs.org/v2/guide/forms.html#%D0%A2%D0...
<input v-model="message" placeholder="отредактируй меня">
<p>Введённое сообщение: {{ message }}</p>
watch: {
message: {
console.log('Yo!');
}
},
Answer the question
In order to leave comments, you need to log in
https://github.com/vuejs/vue/issues/9777#issuecomm...
@input
just should work:
Just think about whether you need it, because if this is some kind of autocomplete and search, then direct input will search for something extra instead of waiting for the user to select a mobile keyboard hint.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question