Skip to content

Commit

Permalink
Fallback to event.srcElement for IE9 facebook#12976
Browse files Browse the repository at this point in the history
  • Loading branch information
joshd-infotrack committed Jun 7, 2018
1 parent 52fbe76 commit 16ffe15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react-dom/src/events/getEventTarget.js
Expand Up @@ -15,7 +15,9 @@ import {TEXT_NODE} from '../shared/HTMLNodeType';
* @return {DOMEventTarget} Target node.
*/
function getEventTarget(nativeEvent) {
let target = nativeEvent.target || window;
// Fallback to nativeEvent.srcElement for IE9
// https://github.com/facebook/react/issues/12506
let target = nativeEvent.target || nativeEvent.srcElement || window;

// Normalize SVG <use> element events #4963
if (target.correspondingUseElement) {
Expand Down

0 comments on commit 16ffe15

Please sign in to comment.