Merge pull request #173 from toeverything/fix/drag-kanban-active-selection

fix: cancel kanban mouse down event
This commit is contained in:
Whitewater
2022-08-10 15:42:56 +08:00
committed by GitHub

View File

@@ -156,7 +156,13 @@ export const CardContainer = (props: CardContainerProps) => {
const { kanban } = useKanban();
const { containerIds, items: dataSource, activeId } = props;
return (
<KanbanContainer>
<KanbanContainer
onMouseDown={e => {
// 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];