mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-23 21:52:49 +03:00
fixbug When opening multiple left sidebar "three-dot" menus in doc mode, the menu boxes will block each other. #16
This commit is contained in:
parent
86faaadbe8
commit
d4be73b78b
@ -4,6 +4,7 @@ import {
|
||||
Cascader,
|
||||
CascaderItemProps,
|
||||
MuiDivider as Divider,
|
||||
MuiClickAwayListener as ClickAwayListener,
|
||||
} from '@toeverything/components/ui';
|
||||
import React from 'react';
|
||||
import { NavLink, useNavigate } from 'react-router-dom';
|
||||
@ -233,7 +234,8 @@ function DndTreeItemMoreActions(props: ActionsProps) {
|
||||
];
|
||||
|
||||
return (
|
||||
<>
|
||||
<ClickAwayListener onClickAway={() => handleClose()}>
|
||||
<div>
|
||||
<span
|
||||
className={styles['TreeItemMoreActions']}
|
||||
onClick={handleClick}
|
||||
@ -255,7 +257,8 @@ function DndTreeItemMoreActions(props: ActionsProps) {
|
||||
autoHideDuration={2000}
|
||||
onClose={handle_alert_close}
|
||||
/>
|
||||
</>
|
||||
</div>
|
||||
</ClickAwayListener>
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user