From d4be73b78bfcefcda3425d15311ac30a01ac9da6 Mon Sep 17 00:00:00 2001 From: xiaodong zuo Date: Tue, 2 Aug 2022 11:20:51 +0800 Subject: [PATCH] fixbug When opening multiple left sidebar "three-dot" menus in doc mode, the menu boxes will block each other. #16 --- .../page-tree/tree-item/MoreActions.tsx | 49 ++++++++++--------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/libs/components/layout/src/workspace-sidebar/page-tree/tree-item/MoreActions.tsx b/libs/components/layout/src/workspace-sidebar/page-tree/tree-item/MoreActions.tsx index d2e00bc471..536026052e 100644 --- a/libs/components/layout/src/workspace-sidebar/page-tree/tree-item/MoreActions.tsx +++ b/libs/components/layout/src/workspace-sidebar/page-tree/tree-item/MoreActions.tsx @@ -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,29 +234,31 @@ function DndTreeItemMoreActions(props: ActionsProps) { ]; return ( - <> - - ··· - - - - + handleClose()}> +
+ + ··· + + + +
+
); }