-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Labels
Description
Version
2.2.4
Reproduction link
https://martar.fr/demo-vue.html
Steps to reproduce
- Use the following snippet:
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<div id="app">
<form @submit.prevent="doSomething()">
<input type="email" v-model="email" name="email">
<input type="password" name="password">
<input type="submit" value="send">
</form>
{{ email }}
</div>
<script type="text/javascript">
new Vue({
el: '#app',
data: {
email: ''
},
method: {
doSomething() {
alert(this.email)
}
}
})
</script>
- Go to Chrome Mobile
- Begin to tap an email
- Choose an email from Chrome list
- See that v-model did not work
Here some screenshots of the problem:
What is expected?
v-model is supposed to be updated on autoupdate
What is actually happening?
the model is not updated