We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a741b01 commit 3904791Copy full SHA for 3904791
src/components/ui/AlertDialog/fragments/AlertDialogPortal.tsx
@@ -8,8 +8,8 @@ export type AlertDialogPortalProps = {
8
9
const AlertDialogPortal = ({ children }: AlertDialogPortalProps) => {
10
const { rootClass } = useContext(AlertDialogContext);
11
- const rootElement = document.querySelector('#rad-ui-theme-container') as HTMLElement | null;
12
- console.log(rootElement);
+ const rootElement = document.querySelector('#rad-ui-theme-container') || document.body as HTMLElement | null;
+
13
return (
14
<Floater.Portal
15
root={rootElement}
0 commit comments