Skip to content

Commit ce39202

Browse files
committed
require composedpath support
1 parent 074b897 commit ce39202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/emitter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Emitter extends EventEmitter {
2727
}
2828

2929
handleDOM(event, ...args) {
30-
const target = event.composedPath ? event.composedPath()[0] : event.target;
30+
const target = event.composedPath()[0];
3131
const containsNode = (node, child) => {
3232
if (child.getRootNode() === document) {
3333
return node.contains(child);

0 commit comments

Comments
 (0)