mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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
This commit is contained in:
@@ -62,7 +62,7 @@ PooledClass.addPoolingTo(
|
||||
);
|
||||
|
||||
function handleTopLevelImpl(bookKeeping) {
|
||||
if (bookKeeping.nativeEvent.path) {
|
||||
if (bookKeeping.nativeEvent.path && bookKeeping.nativeEvent.path.length > 1) {
|
||||
// New browsers have a path attribute on native events
|
||||
handleTopLevelWithPath(bookKeeping);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user