aboutsummaryrefslogtreecommitdiff
path: root/node_modules/react-dom/lib/ReactTestUtils.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/react-dom/lib/ReactTestUtils.js')
-rw-r--r--node_modules/react-dom/lib/ReactTestUtils.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/node_modules/react-dom/lib/ReactTestUtils.js b/node_modules/react-dom/lib/ReactTestUtils.js
index 340eb627e..79fb36444 100644
--- a/node_modules/react-dom/lib/ReactTestUtils.js
+++ b/node_modules/react-dom/lib/ReactTestUtils.js
@@ -281,6 +281,7 @@ var ReactTestUtils = {
*/
simulateNativeEventOnNode: function (topLevelType, node, fakeNativeEvent) {
fakeNativeEvent.target = node;
+ fakeNativeEvent.simulated = true;
ReactBrowserEventEmitter.ReactEventListener.dispatchEvent(topLevelType, fakeNativeEvent);
},