React: Input onChange not triggered every time in IE11 if e.preventDefault() used

Created on 14 Jul 2016  ·  3Comments  ·  Source: facebook/react

Input onChange not triggered every time if e.preventDefault() is called in onChange handler.

Occurs when typing fast: some characters are lost.

React 5.0.2 & IE11.

IE DOM Bug

Most helpful comment

Thanks! I was able to fix by changing onChange to onInput.

A similar discussion is posted here which could be helpful :https://github.com/facebook/react/issues/7027

All 3 comments

@jmullo - Were you able to fix this? I am also facing a similar issue - Would help if solution posted.

I just removed the e.preventDefault() call as it wasn't completely necessary for functionality.

Thanks! I was able to fix by changing onChange to onInput.

A similar discussion is posted here which could be helpful :https://github.com/facebook/react/issues/7027

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zpao picture zpao  ·  3Comments

zpao picture zpao  ·  3Comments

jvorcak picture jvorcak  ·  3Comments

bloodyowl picture bloodyowl  ·  3Comments

trusktr picture trusktr  ·  3Comments