Skip to content

Commit

Permalink
fix: drawer was stealing clicks from rest of page
Browse files Browse the repository at this point in the history
  • Loading branch information
compojoom committed Nov 8, 2024
1 parent 83b1a52 commit cff4630
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/common/PageLayout/SideDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ const SideDrawer = ({ isOpen, onToggle }: SideDrawerProps): ReactElement => {
anchor="left"
open={isOpen}
onClose={() => onToggle(false)}
sx={{
// fixes a bug on small screens where the drawer is not visible,
// but it steals all the events from the rest of the page
position: 'relative',
}}
className={smDrawerHidden ? css.smDrawerHidden : undefined}
>
<aside>
Expand Down

0 comments on commit cff4630

Please sign in to comment.