fixed the menu doesn't close when clicking outside (#87)
This commit is contained in:
parent
47db6cf1bd
commit
30083b6705
1 changed files with 5 additions and 5 deletions
|
@ -190,12 +190,12 @@ export default function Layout({ children, user, loading, noPaper }) {
|
||||||
id='zipline-user-menu'
|
id='zipline-user-menu'
|
||||||
anchorEl={anchorEl}
|
anchorEl={anchorEl}
|
||||||
open={open}
|
open={open}
|
||||||
onClose={handleClose}
|
onClose={handleClose(null)}
|
||||||
MenuListProps={{
|
MenuListProps={{
|
||||||
'aria-labelledby': 'basic-button',
|
'aria-labelledby': 'basic-button',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<MenuItem>
|
<MenuItem disableRipple>
|
||||||
<Typography variant='h5'>
|
<Typography variant='h5'>
|
||||||
<b>{user.username}</b>
|
<b>{user.username}</b>
|
||||||
</Typography>
|
</Typography>
|
||||||
|
@ -299,12 +299,12 @@ export default function Layout({ children, user, loading, noPaper }) {
|
||||||
id='zipline-user-menu'
|
id='zipline-user-menu'
|
||||||
anchorEl={anchorEl}
|
anchorEl={anchorEl}
|
||||||
open={open}
|
open={open}
|
||||||
onClose={handleClose}
|
onClose={handleClose(null)}
|
||||||
MenuListProps={{
|
MenuListProps={{
|
||||||
'aria-labelledby': 'basic-button',
|
'aria-labelledby': 'basic-button',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<MenuItem>
|
<MenuItem disableRipple>
|
||||||
<Typography variant='h5'>
|
<Typography variant='h5'>
|
||||||
<b>{user.username}</b>
|
<b>{user.username}</b>
|
||||||
</Typography>
|
</Typography>
|
||||||
|
@ -378,4 +378,4 @@ export default function Layout({ children, user, loading, noPaper }) {
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue