MCPcopy
hub / github.com/flatpickr/flatpickr / getEventTarget

Function getEventTarget

src/utils/dom.ts:70–80  ·  view source on GitHub ↗
(event: Event)

Source from the content-addressed store, hash-verified

68}
69
70export 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}

Callers 15

onYearInputFunction · 0.90
bindEventsFunction · 0.90
selTextFunction · 0.90
timeIncrementFunction · 0.90
incrementNumInputFunction · 0.90
buildMonthFunction · 0.90
documentClickFunction · 0.90
onKeyDownFunction · 0.90
openFunction · 0.90
selectDateFunction · 0.90
setupMobileFunction · 0.90
onMonthNavClickFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…