-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
IE11 <select @input="..."> not firing on selection change #4701
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
Comments
This actually has nothing to do with Vue, it's simply how IE11 behaves: https://fiddle.jshell.net/b9re3psg/1/ |
I had to look around for a while to find and solve this issue. Can we add this to the docs? How is it solved with |
I might be missing something, but... what about using |
@nirazul Yes, that's what I did now. But from the docs about form input components I assumed that As I said, it's working for me now, I just thought that maybe you can make this more obvious for future people with the same kind of problems. |
With v2.2+ you can use any event with v-model (checkout model option) |
@danieldiekmeier |
@nirazul But using |
@danieldiekmeier Oh... 👯 |
But I looked around a bit where this information could be put, but am not sure there actually is a place. Probably it was just my own mistake, because it really has nothing to do with Vue. I'm fine if we just put this to rest now. 💃 |
+1 on this. Coming from a React background where browser quirks like this are handled behind their fixed API this was a particularly frustrating behaviour to come across. I think that a good solution would either/both be:
|
@bhoop you can try <select @textinput="func">for input events. input event isn't supported in IE 11. However, textinput event is supported. I'm also thinking we can nicely provide this alternative facade within the VueJS eventing core with the permission of @yyx990803 . |
I was able to make it work with v-model.lazy in IE11. According to the documentation this uses change event instead of input.. I couldn't make it fire with |
Vue.js version
2.1.8
Reproduction Link
https://fiddle.jshell.net/b9re3psg/
Steps to reproduce
<select>
field next to "Won't fire" from2016
to2017
What is Expected?
The
test()
method will be called (which fires off analert()
).What is actually happening?
Nothing (in Internet Explorer 11). In Chrome and Firefox the
test()
method is triggered as expected.The text was updated successfully, but these errors were encountered: