diff --git a/packages/react-hooks/src/usePopoverOnScrollRef.ts b/packages/react-hooks/src/usePopoverOnScrollRef.ts index a805fabb2..34fd181a8 100644 --- a/packages/react-hooks/src/usePopoverOnScrollRef.ts +++ b/packages/react-hooks/src/usePopoverOnScrollRef.ts @@ -14,7 +14,8 @@ export interface UsePopoverOnScrollRefResult { * @param findScrollArea Function to retreive the DOM element to attach a scroll * event listener to * @param onScroll Scroll event listener function to attach - * @param getInitialScrollPosition Function to retrieve the initial scroll position. + * @param getInitialScrollPosition Function to retrieve the initial scroll + * position. If it returns `null`, no scrolling will occur. */ export function usePopoverOnScrollRef( findScrollArea: (ref: T | null) => HTMLElement | null,