Skip to content
Permalink
Browse files

fix(event-manager): Firefox shadow dom event handling

Return correct original event target for Firefox

Closes #765
  • Loading branch information
michaelw85 committed Nov 12, 2019
1 parent a29c81e commit 7a6cc3b42cea4699d139f46ee0e66477f9a3b321
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/event-manager.js
@@ -5,7 +5,7 @@ import * as LogManager from 'aurelia-logging';
let emLogger = LogManager.getLogger('event-manager');
//Note: path and deepPath are designed to handle v0 and v1 shadow dom specs respectively
function findOriginalEventTarget(event) {
return (event.path && event.path[0]) || (event.deepPath && event.deepPath[0]) || event.target;
return (event.path && event.path[0]) || (event.deepPath && event.deepPath[0]) || (event.composedPath && event.composedPath()[0]) || event.target;
}

function stopPropagation() {

0 comments on commit 7a6cc3b

Please sign in to comment.
You can’t perform that action at this time.