MCPcopy
hub / github.com/flatpickr/flatpickr / getClosestActiveElement

Function getClosestActiveElement

src/index.ts:134–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132 }
133
134 function getClosestActiveElement() {
135 return (
136 ((self.calendarContainer?.getRootNode() as unknown) as DocumentOrShadowRoot)
137 .activeElement || document.activeElement
138 );
139 }
140
141 function bindToInstance<F extends Function>(fn: F): F {
142 return fn.bind(self);

Callers 2

focusOnDayFunction · 0.85
onKeyDownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…