We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4af9c50 commit 0018dffCopy full SHA for 0018dff
src/useWaitForDOMRef.ts
@@ -5,7 +5,11 @@ import useWindow from './useWindow';
5
import { VirtualElement } from './usePopper';
6
7
export type DOMContainer<T extends HTMLElement | VirtualElement = HTMLElement> =
8
- T | React.RefObject<T> | null | (() => T | React.RefObject<T> | null);
+
9
+ | T
10
+ | React.RefObject<T | null>
11
+ | null
12
+ | (() => T | React.RefObject<T | null> | null);
13
14
export const resolveContainerRef = <T extends HTMLElement | VirtualElement>(
15
ref: DOMContainer<T> | undefined,
0 commit comments