From f0ef58b30a2c5a4f4cb180fbb138bc4455c3bd4e Mon Sep 17 00:00:00 2001 From: kyletsang <6854874+kyletsang@users.noreply.github.com> Date: Sun, 12 Jan 2025 17:22:37 -0800 Subject: [PATCH] fix(Overlay): fix target type for react 19 refs --- src/useWaitForDOMRef.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/useWaitForDOMRef.ts b/src/useWaitForDOMRef.ts index 5de0a85..40a6b8a 100644 --- a/src/useWaitForDOMRef.ts +++ b/src/useWaitForDOMRef.ts @@ -5,7 +5,11 @@ import useWindow from './useWindow'; import { VirtualElement } from './usePopper'; export type DOMContainer = - T | React.RefObject | null | (() => T | React.RefObject | null); + + | T + | React.RefObject + | null + | (() => T | React.RefObject | null); export const resolveContainerRef = ( ref: DOMContainer | undefined,