Skip to content

Commit 004cf12

Browse files
committed
fix ts type error
1 parent 89cf452 commit 004cf12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/utils/dom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,6 @@ export function addDelegatedEventListener<T extends HTMLElement, E extends Event
358358
parent.addEventListener(type, (e: Event) => {
359359
const elem = (e.target as HTMLElement).closest(selector);
360360
if (!elem) return;
361-
listener(elem as T, e);
361+
listener(elem as T, e as E);
362362
}, options);
363363
}

0 commit comments

Comments
 (0)