Skip to content

Commit d1169b5

Browse files
committed
Merge pull request #4466 from jimfb/path-events-in-detached-nodes
Use old event propagation if path is not reasonable (eg. detached DOM). Fixes #4452
2 parents 318c288 + 054fa0e commit d1169b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderers/dom/client/ReactEventListener.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ PooledClass.addPoolingTo(
6262
);
6363

6464
function handleTopLevelImpl(bookKeeping) {
65-
if (bookKeeping.nativeEvent.path) {
65+
if (bookKeeping.nativeEvent.path && bookKeeping.nativeEvent.path.length > 1) {
6666
// New browsers have a path attribute on native events
6767
handleTopLevelWithPath(bookKeeping);
6868
} else {

0 commit comments

Comments
 (0)