From d91f49e728b613e24b40d7e81d47fd1f3bd92372 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Fri, 24 May 2024 16:22:51 -0400 Subject: [PATCH] fix(utils/react): shut it ts --- src/utils/react.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/react.ts b/src/utils/react.ts index 765a9fb8..82c21412 100644 --- a/src/utils/react.ts +++ b/src/utils/react.ts @@ -69,6 +69,7 @@ export function getReactRoot(o: HTMLElement | Element | Node) { return ( // @ts-expect-error 7053 o[Object.keys(o).find((k) => k.startsWith('__reactContainer$')) as string] || + // @ts-expect-error 7053 o['_reactRootContainer']?._internalRoot?.current ); } @@ -77,6 +78,7 @@ export function getReactInstance(o: HTMLElement | Element | Node) { return ( // @ts-expect-error 7053 o[Object.keys(o).find((k) => k.startsWith('__reactFiber')) as string] || + // @ts-expect-error 7053 o[Object.keys(o).find((k) => k.startsWith('__reactInternalInstance')) as string] ); }