MCPcopy Create free account
hub / github.com/bvaughn/react-window / getOwnerWindow

Function getOwnerWindow

lib/utils/getOwnerWindow.ts:1–5  ·  view source on GitHub ↗
(
  element: Element | null | undefined
)

Source from the content-addressed store, hash-verified

1export function getOwnerWindow(
2 element: Element | null | undefined
3): Window & typeof globalThis {
4 return element?.ownerDocument.defaultView ?? window;
5}

Callers 10

useDynamicRowHeightFunction · 0.90
getResizeObserverClassFunction · 0.90
getScrollTargetFunction · 0.90
isSelfScrollingFunction · 0.90
getScrollPaddingFunction · 0.90
observePrecedingContentFunction · 0.90
useScrollToIndexFunction · 0.90
useVirtualizerFunction · 0.90
useIsScrollingFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected