-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
IE10 triggers onChange twice when replacing a text selection #8531
Comments
I am currently running into this issue as well. Someone please help! |
Is this still an issue with React 16? |
I am attempting to look into this, but need some help! @aweary What's the best practices for debugging older versions of IE? I'm currently running a VM on my Mac with Parallels and have IE11 up. However, JSFiddle won't load the React debugging starter code (https://jsfiddle.net/Luktwrdm) in IE11. I keep on getting "SCRIPT002: Syntax error" on the first line of the html, which is just the doctype html line. I think it's because of the Babel transpiling not working on IE11 on JSFiddle... Any tips? |
I tried another approach where I put the bug in an empty React app made with create-react-app, ran the server on my Mac, and logged onto it through my Parallels VM in IE11. I used IE11's emulation feature to emulate IE10 and couldn't replicate the bug for React 16 or 15.4.1. I will investigate further on actual IE10 when I have access to more disk space for all these VMs, but so far no luck replicating the bug. |
I'm experiencing this in Android Mobile Chrome 87.0.4280.101 as well. See https://codesandbox.io/s/react-input-event-twice-4dh59. Should I perhaps create a new issue for this? Edit: Doesn't occur in iOS Mobile Chrome. Edit 2: Created separate issue: #20476 |
That would be better. Please include more information about your device and the steps to reproduce. I was not able to reproduce it on my Redmi Note 4 with Chrome 87.0.4280.101. |
We've dropped IE from supported browsers in React 18 so this is unlikely to get fixed. |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
A
keyWhen hitting the
A
key,onChange
is triggered twice. One timeevent.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/
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?
The text was updated successfully, but these errors were encountered: