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

In IE 11 the first input event on a text input is blocked if placeholder is set and the model is initialised #9383

Closed
spectrum128 opened this issue Jan 28, 2019 · 1 comment

Comments

@spectrum128
Copy link

Version

2.5.22

Reproduction link

https://jsbin.com/dobagokure/1/edit?html,js,output

Steps to reproduce

  1. Open https://jsbin.com/dobagokure/1/edit?html,js,output in IE 11.

  2. Enter a single character in the text input just after 'Hello Vue!'

  3. Model will not be updated on the first character input but will be on subsequent inputs

*Note to reproduce a second time you will need to refresh the page.

What is expected?

When a single character is entered the model should update

What is actually happening?

The input event is blocked and the model does not update until a second character is entered.


I believe it could be related to a previous fix for an issue that IE11 is firing an input event when the placeholder is set:

lovelope@15e8fa5

Perhaps it should check if the value is set first before blocking the initial event?

Many Thanks,
Declan

@posva
Copy link
Member

posva commented Jan 28, 2019

Related to #7138

@yyx990803 yyx990803 added the bug label Feb 4, 2019
Lostlover pushed a commit to Lostlover/vue that referenced this issue Dec 10, 2019
…9297)

- the original bug in vuejs#7138 only happens for `<textarea>`
- the bug doesn't happen if placeholder has empty value

fix vuejs#9042, fix vuejs#9383
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants