@samitouri / QOS-React-2 / commits / 016a1907e1

Disable event.path handling

Looks like #4558 isn't ready yet and we'd like an interim fix.

Ben Alpert committed Aug 7, 2015 at 13:33 UTC 016a1907e173356ac0e4efe7728915656df793e0
1 file changed +12 -7
src/renderers/dom/client/ReactEventListener.js
+12 -7
@@ -62,13 +62,18 @@ PooledClass.addPoolingTo(
62 );
63
64 function handleTopLevelImpl(bookKeeping) {
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 {
69 - // Legacy browsers don't have a path attribute on native events
70 - handleTopLevelWithoutPath(bookKeeping);
71 - }
65 + // TODO: Re-enable event.path handling
66 + //
67 + // if (bookKeeping.nativeEvent.path && bookKeeping.nativeEvent.path.length > 1) {
68 + // // New browsers have a path attribute on native events
69 + // handleTopLevelWithPath(bookKeeping);
70 + // } else {
71 + // // Legacy browsers don't have a path attribute on native events
72 + // handleTopLevelWithoutPath(bookKeeping);
73 + // }
74 +
75 + void handleTopLevelWithPath; // temporarily unused
76 + handleTopLevelWithoutPath(bookKeeping);
77 }
78
79 // Legacy browsers don't have a path attribute on native events