Skip to content

Commit

Permalink
Comment (#1858)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Mar 22, 2024
1 parent e9a61b7 commit 46f7a5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-hooks/src/usePopoverOnScrollRef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export interface UsePopoverOnScrollRefResult<T> {
* event listener to
* @param onScroll Scroll event listener function to attach
* @param getInitialScrollPosition Function to retrieve the initial scroll
* position. If it returns `null`, no scrolling will occur.
* position. If no function is given, or if the function returns `null`, no
* initial scrolling will occur.
*/
export function usePopoverOnScrollRef<T>(
findScrollArea: (ref: T | null) => HTMLElement | null,
Expand Down

0 comments on commit 46f7a5d

Please sign in to comment.