Skip to content

IE10 triggers onChange twice when replacing a text selection  #8531

@jfschwarz

Description

@jfschwarz

Do you want to request a feature or report a bug?
Bug

What is the current behavior?

  • Type text "123" in an input
  • Select the whole text
  • Type the A key

When hitting the A key, onChange is triggered twice. One time event.target.value is "". The second time it's "A".

This only happens in IE10. IE9 and IE11 both behave correctly.

Demo fiddle

https://jsfiddle.net/69z2wepo/64637/

ie10onchange

What is the expected behavior?
When hitting the A key, onChange is triggered only one time. event.target.value should be "A".

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

  • React 15.4.1 (possibly also older versions)
  • IE10 / Windows 7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions