react icon indicating copy to clipboard operation
react copied to clipboard

Pasting text in text box does not fire change event on IE11.

Open mashimonator opened this issue 9 years ago • 5 comments

I found a bug in IE11. React version is 15.4.0.

Pasting text in text box does not fire change event on IE11.

https://jsfiddle.net/mashimonator/uh699v8d/6/

mashimonator avatar Mar 03 '17 02:03 mashimonator

Could not reproduce it(using your fiddle) in IE 11. Ver: 11.162.10586.0

gilbertkaradja avatar Mar 03 '17 09:03 gilbertkaradja

I use ver 11.0.9600.18538 untitled2

mashimonator avatar Mar 05 '17 01:03 mashimonator

IE 11, ver. 11.0.9600.18537 I was able to reproduce that.

The thing is - If you use a keyboard shortcut (CTRL+V), it will update. However, using Right Click -> Paste does not trigger updating.

Also noticed that, If you press that small X at the end of input box, it won't trigger the update either.

EDIT

Added native event Listener to input to check event type. Looks like Right clicking -> Paste in IE is a DragEvent, with a type 'paste', while in Chrome or Firefox it's a Clipboard event, with type 'paste'. Just leaving it here, as it could be a small hint while addressing the bug.

Updated fiddle I used: https://jsfiddle.net/uh699v8d/7/

krizzu avatar Mar 09 '17 15:03 krizzu

Working on version IE-11.0.9600.16428. And facing the same issue but in case of shortcut (CTRL+V). Seems like jquery issue.

jitendra091 avatar May 29 '18 13:05 jitendra091

We've dropped IE from supported browsers in React 18 so this is unlikely to get fixed. Sorry.

gaearon avatar Mar 29 '22 23:03 gaearon