{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/react/issues/8531","repository_url":"https://api.github.com/repos/facebook/react","labels_url":"https://api.github.com/repos/facebook/react/issues/8531/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/8531/comments","events_url":"https://api.github.com/repos/facebook/react/issues/8531/events","html_url":"https://github.com/facebook/react/issues/8531","id":194364627,"number":8531,"title":"IE10 triggers onChange twice when replacing a text selection ","user":{"login":"jfschwarz","id":524089,"avatar_url":"https://avatars.githubusercontent.com/u/524089?v=3","gravatar_id":"","url":"https://api.github.com/users/jfschwarz","html_url":"https://github.com/jfschwarz","followers_url":"https://api.github.com/users/jfschwarz/followers","following_url":"https://api.github.com/users/jfschwarz/following{/other_user}","gists_url":"https://api.github.com/users/jfschwarz/gists{/gist_id}","starred_url":"https://api.github.com/users/jfschwarz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfschwarz/subscriptions","organizations_url":"https://api.github.com/users/jfschwarz/orgs","repos_url":"https://api.github.com/users/jfschwarz/repos","events_url":"https://api.github.com/users/jfschwarz/events{/privacy}","received_events_url":"https://api.github.com/users/jfschwarz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-08T15:27:56Z","updated_at":"2016-12-08T15:27:56Z","closed_at":null,"body":"**Do you want to request a *feature* or report a *bug*?**\r\nBug\r\n\r\n**What is the current behavior?**\r\n- Type text \"123\" in an input\r\n- Select the whole text\r\n- Type the `A` key\r\n\r\nWhen hitting the `A` key, `onChange` is triggered twice. One time `event.target.value` is `\"\"`. The second time it's `\"A\"`.\r\n\r\nThis only happens in IE10. IE9 and IE11 both behave correctly.\r\n\r\n**Demo fiddle**\r\n\r\nhttps://jsfiddle.net/69z2wepo/64637/\r\n\r\n![ie10onchange](https://cloud.githubusercontent.com/assets/524089/21014764/8883c6fa-bd5f-11e6-8e9c-65a957bbca7e.gif)\r\n\r\n**What is the expected behavior?**\r\nWhen hitting the `A` key, `onChange` is triggered only one time. `event.target.value` should be `\"A\"`.\r\n\r\n**Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?**\r\n\r\n- React 15.4.1 (possibly also older versions)\r\n- IE10 / Windows 7\r\n"}}
{"actor":{"display_login":"jfschwarz"}}