We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c845c02 commit 163b178Copy full SHA for 163b178
src/forcedRetargeting.ts
@@ -51,7 +51,9 @@ function dispatchEvent(
51
}
52
53
54
-function composedPath(el: HTMLElement | null): any {
+function composedPath(
55
+ el: HTMLElement | null,
56
+): (Node | (Window & typeof globalThis))[] {
57
const path = [];
58
while (el) {
59
path.push(el);
@@ -62,7 +64,7 @@ function composedPath(el: HTMLElement | null): any {
62
64
63
65
el = el.parentElement;
66
- return [el];
67
+ return [];
68
69
70
export default function retargetEvents(shadowRoot: Node): () => void {
tsconfig.json
@@ -17,5 +17,5 @@
17
"target": "es5"
18
},
19
"include": ["src"],
20
- "exclude": ["src/__tests__"]
+ "exclude": ["src/__tests__", "node_modules"]
21
0 commit comments