Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v-model does no sync when keyboard Backspace clicked in input[type="password"] & IE 9 #5250

Closed
Array-Huang opened this issue Mar 22, 2017 · 3 comments

Comments

@Array-Huang
Copy link

Array-Huang commented Mar 22, 2017

Version

2.2.4

Reproduction link

https://jsfiddle.net/array_huang/9czpu10o/2/

Steps to reproduce

I can't test my code in jsfiddle with IE 9. So maybe you need to test it in the local file.

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <form action="">
      <input type="text" v-model="username">
      <p>{{username}}</p>
      <input type="password" v-model="pwd">
      <p>{{pwd}}</p>
    </form>
  </div>
  <script src="./vue.min.js"></script>
  <script>
    var app = new Vue({
      el: '#app',
      data: {
        username: '',
        pwd: '',
      }
    })
  </script>
</body>
</html>

What is expected?

when I input Backspace to delete any word in input[type="password"] with v-model & IE 9, it should sync like input[type="text"].

What is actually happening?

It doesn't sync when I input Backspace.

@znck
Copy link
Member

znck commented Mar 22, 2017

In most conditions these type of bugs are not caused by Vue. Still, can anyone confirm this?

/ping @vuejs/collaborators

@ktsn
Copy link
Member

ktsn commented Mar 22, 2017

I just confirm this problem with the provided code. IE 9 emulator of IE 11 on Windows 10.
FYI, IE 10/11 don't cause this.

@Array-Huang
Copy link
Author

Oh I forgot to tell I tested in IE 9 emulator of IE 11 on Windows 10. I don't really have an IE 9,so I can't promise that the bug can reproduce in an real IE 9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants