fix(web/menu): set pointer events to none on body div

Fixes and issue where you could click the menu to take away focus and make it non interactable
This commit is contained in:
Luke
2022-07-29 18:37:31 +02:00
committed by Luke
parent 700fdbc3fe
commit e81a05aa2d
2 changed files with 1 additions and 1 deletions

View File

@@ -15,7 +15,6 @@ const ListItem = forwardRef<Array<HTMLDivElement | null>, Props>(({ item, index,
bg="#25262B"
borderRadius="md"
tabIndex={index}
pointerEvents="none"
p={2}
height="60px"
key={`item-${index}`}

View File

@@ -105,6 +105,7 @@ const ListMenu: React.FC = () => {
<>
<Box
position="absolute"
pointerEvents="none"
pt={menu.position === "top-left" || menu.position === "top-right" ? 5 : 0}
pl={menu.position === "top-left" || menu.position === "bottom-left" ? 5 : 0}
pr={menu.position === "top-right" || menu.position === "bottom-right" ? 5 : 0}