2024-01-29 09:26:07 +08:00

5 lines
93 B
JavaScript

export function getEventTarget(e) {
const path = e.composedPath();
return path[0];
}