Skip to content

v-model does not sync when browser autocompletes #5248

@ElMatella

Description

@ElMatella

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:

Step 1

What is expected?

v-model is supposed to be updated on autoupdate

What is actually happening?

the model is not updated


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions