Skip to content

Commit

Permalink
fixed the menu doesn't close when clicking outside (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaNecron authored Aug 26, 2021
1 parent 47db6cf commit 30083b6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ export default function Layout({ children, user, loading, noPaper }) {
id='zipline-user-menu'
anchorEl={anchorEl}
open={open}
onClose={handleClose}
onClose={handleClose(null)}
MenuListProps={{
'aria-labelledby': 'basic-button',
}}
>
<MenuItem>
<MenuItem disableRipple>
<Typography variant='h5'>
<b>{user.username}</b>
</Typography>
Expand Down Expand Up @@ -299,12 +299,12 @@ export default function Layout({ children, user, loading, noPaper }) {
id='zipline-user-menu'
anchorEl={anchorEl}
open={open}
onClose={handleClose}
onClose={handleClose(null)}
MenuListProps={{
'aria-labelledby': 'basic-button',
}}
>
<MenuItem>
<MenuItem disableRipple>
<Typography variant='h5'>
<b>{user.username}</b>
</Typography>
Expand Down Expand Up @@ -378,4 +378,4 @@ export default function Layout({ children, user, loading, noPaper }) {
</Box>
</Box>
);
}
}

0 comments on commit 30083b6

Please sign in to comment.