Skip to content
This repository was archived by the owner on Feb 11, 2021. It is now read-only.

Commit 0fae1e5

Browse files
committed
Dispatcher: Fix event propagation for IE10
Fixes gh-320 Closes gh-324
1 parent 12f6ce5 commit 0fae1e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/dispatcher.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,9 @@ var dispatcher = {
313313
propagate: function(event, fn, propagateDown) {
314314
var target = event.target;
315315
var targets = [];
316-
while (!target.contains(event.relatedTarget) && target !== document) {
316+
317+
// Order of conditions due to document.contains() missing in IE.
318+
while (target !== document && !target.contains(event.relatedTarget)) {
317319
targets.push(target);
318320
target = target.parentNode;
319321
}

0 commit comments

Comments
 (0)