(event: Event)
| 68 | } |
| 69 | |
| 70 | export function getEventTarget(event: Event): EventTarget | null { |
| 71 | try { |
| 72 | if (typeof event.composedPath === "function") { |
| 73 | const path = event.composedPath(); |
| 74 | return path[0]; |
| 75 | } |
| 76 | return event.target; |
| 77 | } catch (error) { |
| 78 | return event.target; |
| 79 | } |
| 80 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…