fixed the menu doesn't close when clicking outside (#87)

This commit is contained in:
Nguyen Thanh Quang 2021-08-26 09:41:32 +07:00 committed by GitHub
parent 47db6cf1bd
commit 30083b6705
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>
@ -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>