mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-15 01:23:56 +00:00
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:
1 parent
700fdbc3fe
commit
e81a05aa2d
2 files changed
+1
-1
No files matched your search
@@ -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}`}
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user