From ff468baf495984cab471bde38738fde1a195202f Mon Sep 17 00:00:00 2001 From: lawvs <18554747+lawvs@users.noreply.github.com> Date: Wed, 10 Aug 2022 14:43:05 +0800 Subject: [PATCH] fix: cancel kanban mouse down event --- .../src/blocks/group/scene-kanban/CardContainer.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/components/editor-blocks/src/blocks/group/scene-kanban/CardContainer.tsx b/libs/components/editor-blocks/src/blocks/group/scene-kanban/CardContainer.tsx index cd71b72666..5151aaec99 100644 --- a/libs/components/editor-blocks/src/blocks/group/scene-kanban/CardContainer.tsx +++ b/libs/components/editor-blocks/src/blocks/group/scene-kanban/CardContainer.tsx @@ -156,7 +156,13 @@ export const CardContainer = (props: CardContainerProps) => { const { kanban } = useKanban(); const { containerIds, items: dataSource, activeId } = props; return ( - + { + // Fix https://github.com/toeverything/AFFiNE/issues/29 + // Prevent active selection when dragging kanban card + e.stopPropagation(); + }} + > {containerIds.map((containerId, idx) => { const items = dataSource[containerId];