Skip to content

Commit

Permalink
require composedpath support
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j committed Feb 26, 2020
1 parent 074b897 commit ce39202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/emitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Emitter extends EventEmitter {
}

handleDOM(event, ...args) {
const target = event.composedPath ? event.composedPath()[0] : event.target;
const target = event.composedPath()[0];
const containsNode = (node, child) => {
if (child.getRootNode() === document) {
return node.contains(child);
Expand Down

0 comments on commit ce39202

Please sign in to comment.