Wrap in Portal (#191)

This commit is contained in:
arcticfly
2023-08-23 23:48:53 -07:00
committed by GitHub
parent 87e2339df2
commit ec59252010

View File

@@ -14,6 +14,7 @@ import {
Link as ChakraLink,
Image,
Box,
Portal,
} from "@chakra-ui/react";
import { useEffect } from "react";
import Link from "next/link";
@@ -109,6 +110,7 @@ export default function ProjectMenu() {
</HStack>
</NavSidebarOption>
</PopoverTrigger>
<Portal>
<PopoverContent
_focusVisible={{ outline: "unset" }}
w={220}
@@ -167,6 +169,7 @@ export default function ProjectMenu() {
</VStack>
</VStack>
</PopoverContent>
</Portal>
</Popover>
</VStack>
);