MCPcopy
hub / github.com/flatpickr/flatpickr / isInView

Function isInView

src/index.ts:1613–1621  ·  view source on GitHub ↗
(elem: Element)

Source from the content-addressed store, hash-verified

1611 }
1612
1613 function isInView(elem: Element) {
1614 if (self.daysContainer !== undefined)
1615 return (
1616 elem.className.indexOf("hidden") === -1 &&
1617 elem.className.indexOf("flatpickr-disabled") === -1 &&
1618 self.daysContainer.contains(elem)
1619 );
1620 return false;
1621 }
1622
1623 function onBlur(e: FocusEvent) {
1624 const isInput = e.target === self._input;

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…