fix: get correct new postion after dropping task in different list
was getting the current draggable list based on whatever task group the task was in, ignoring that that task group might be different (when the task was dragged to a new list)
This commit is contained in:
@ -39,6 +39,7 @@ type Props = {
|
||||
taskID: string;
|
||||
taskGroupID: string;
|
||||
complete?: boolean;
|
||||
position?: string | number;
|
||||
onContextMenu?: ($target: React.RefObject<HTMLElement>, taskID: string, taskGroupID: string) => void;
|
||||
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
||||
description?: null | string;
|
||||
@ -76,6 +77,7 @@ const Card = React.forwardRef(
|
||||
dueDate,
|
||||
description,
|
||||
checklists,
|
||||
position,
|
||||
watched,
|
||||
members,
|
||||
labelVariant,
|
||||
@ -205,7 +207,7 @@ const Card = React.forwardRef(
|
||||
) : (
|
||||
<CardTitle>
|
||||
{complete && <CompleteIcon width={16} height={16} />}
|
||||
{title}
|
||||
{`${title}${position ? ' - ' + position : ''}`}
|
||||
</CardTitle>
|
||||
)}
|
||||
<ListCardBadges>
|
||||
|
Reference in New Issue
Block a user