[Vuejs]-VueJS does not fire input event on first input in IE11

1👍

It turned out that I set placeholder to a empty string. So actually I had a component which is a wrapper for <input>. In this component I had a placeholder property, which was set to empty string by default and was applied to <input> tag.

I set placeholder property to null by default and it helped

👤Victor

2👍

IE doesn’t have great support for the input event on some field types:

<select> doesn’t fire input events.
Doesn’t fire an input event when (un)checking a checkbox or radio button.
https://caniuse.com/#search=oninput

and

[IE] ignored the input event completely [on range inputs.]
Their change event behaved just like the input event did on other browsers
https://blog.vendivel.com/javascript/2016/01/31/ie-oninput-bug.html

The keyup event can be used as a substitute if you need per-key handling (though this doesn’t support paste operations), or you can use the change event if you can wait until the user has finished entering data.

Leave a comment