@samitouri / QOS-React-2 / commits / 054fa0e16b

Use old event propagation if path is not reasonable (eg. detached DOM). Fixes #4452

Jim committed Jul 22, 2015 at 12:41 UTC 054fa0e16b763b2051e363f0a4b5d9a70c397926
1 file changed +1 -1
src/renderers/dom/client/ReactEventListener.js
+1 -1
@@ -62,7 +62,7 @@ PooledClass.addPoolingTo(
62 );
63
64 function handleTopLevelImpl(bookKeeping) {
65 - if (bookKeeping.nativeEvent.path) {
65 + if (bookKeeping.nativeEvent.path && bookKeeping.nativeEvent.path.length > 1) {
66 // New browsers have a path attribute on native events
67 handleTopLevelWithPath(bookKeeping);
68 } else {