From ce39202b2fbf650420902508b0bc8d2c15ff0eac Mon Sep 17 00:00:00 2001 From: James Garbutt <43081j@users.noreply.github.com> Date: Thu, 24 Oct 2019 12:59:19 +0100 Subject: [PATCH] require composedpath support --- core/emitter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/emitter.js b/core/emitter.js index 4fc7953f2a..5e89315cad 100644 --- a/core/emitter.js +++ b/core/emitter.js @@ -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);