-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
IE11: Keystrokes missing if v-model is used #6466
Comments
I cannot test it right now but if using an |
I don't know for sure what going on in the source that could cause this, but its definitely not the @ckittelmann I imagine that if you are using a barcode scanner you only need to listen to the keyup event, and if you don't need the two-way data-binding then this might be a solution for you. |
Pressing several buttons at the same time fires several input events (one for each button the keyboard sends), that's ok. What is not ok with IE11 with v-model binding is the fact that every other event handler gets fired before the input value is changed, the pattern is like this:
I suspect it may have something to do with the nextTick behavior. BTW, timerFunc is called only half the time in IE11 unlike, for example, Chrome or FF. |
Finally, could test on IE11. It's also weird when you keep 3 keys pressed because only 1 gets repeated. As a workaround, use an |
Thx @jsnanigans for the workaround I will look at our application, but I think we need the two way binding. |
MutationObserver is unreliable in IE11. fix vuejs#6466
MutationObserver is unreliable in IE11. fix vuejs#6466
Version
2.4.2
Reproduction link
http://jsfiddle.net/zjsuzqgu/15/
Steps to reproduce
This issue only occurs in Internet Exporer 11 on textareas and input fields when using v-model binding.
We used a barcode scanner to enter the texts, but its also possible to reproduce it with the keyboard.
We also recognized that it happens more often on slow machines
What is expected?
All keys are recognized
What is actually happening?
Some letters are missing randomly
We made a video of this behaviour: https://youtu.be/w-IYuPBGdR0
You could reproduce this even on the vuejs page https://vuejs.org/v2/guide/forms.html#Text
I just added a v-on:input to the textarea to see whats logged there.
The result was
A
A
AC
AC
The B was never recognized even in input event
I also changed the intercharacter delay of the scanner from 1 ms to 25 ms without success
The text was updated successfully, but these errors were encountered: