Skip to content

Commit

Permalink
fix : stopPropagation
Browse files Browse the repository at this point in the history
  • Loading branch information
jasper200207 committed Aug 21, 2024
1 parent cb996e9 commit c4f113e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ const Sidebar = () => {
setIsOpen(false);
}}
>
<Box pos="absolute" w={isOpen ? { base: '215px', lg: '230px', '2xl': '240px' } : '52px'}>
<Box
pos="absolute"
w={isOpen ? { base: '215px', lg: '230px', '2xl': '240px' } : '52px'}
onClick={(e) => e.stopPropagation()}
>
<SidebarContent isOpen={isOpen} setIsOpen={setIsOpen} />
</Box>
</Box>
Expand Down

0 comments on commit c4f113e

Please sign in to comment.