fix: cancel kanban mouse down event
This commit is contained in:
@@ -156,7 +156,13 @@ export const CardContainer = (props: CardContainerProps) => {
|
|||||||
const { kanban } = useKanban();
|
const { kanban } = useKanban();
|
||||||
const { containerIds, items: dataSource, activeId } = props;
|
const { containerIds, items: dataSource, activeId } = props;
|
||||||
return (
|
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) => {
|
{containerIds.map((containerId, idx) => {
|
||||||
const items = dataSource[containerId];
|
const items = dataSource[containerId];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user