From 3c79d6694637ef1427f1e9a31d922c616ae863fe Mon Sep 17 00:00:00 2001 From: Whitewater Date: Mon, 29 Aug 2022 18:23:33 +0800 Subject: [PATCH] fix: disable ref page selection (#343) --- .../editor-blocks/src/blocks/group/scene-kanban/RefPage.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/components/editor-blocks/src/blocks/group/scene-kanban/RefPage.tsx b/libs/components/editor-blocks/src/blocks/group/scene-kanban/RefPage.tsx index 3d223d121d..34d6dbb583 100644 --- a/libs/components/editor-blocks/src/blocks/group/scene-kanban/RefPage.tsx +++ b/libs/components/editor-blocks/src/blocks/group/scene-kanban/RefPage.tsx @@ -21,13 +21,17 @@ const Modal = ({ open, children }: { open: boolean; children?: ReactNode }) => { return createPortal( void }) => { + // Prevent trigger the bottom editor's selection + e.stopPropagation(); + }} + onClick={closeSubPage} style={{ display: 'flex', flexDirection: 'column', background: 'rgba(58, 76, 92, 0.4)', zIndex: theme.affine.zIndex.popover, }} - onClick={closeSubPage} > void }) => {