Skip to content

Commit b927110

Browse files
committed
Merge pull request #4585 from spicyj/disable-path
Disable event.path handling
2 parents 7f119d4 + 016a190 commit b927110

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

src/renderers/dom/client/ReactEventListener.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,18 @@ PooledClass.addPoolingTo(
6262
);
6363

6464
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);
7277
}
7378

7479
// Legacy browsers don't have a path attribute on native events

0 commit comments

Comments
 (0)