fix(todo): prevent DnD from blocking subtask clicks in KanbanTaskCard

svelte-dnd-action intercepted pointerdown on .task-card-wrapper items,
which interfered with clicks on the inline subtask buttons. Stopping
pointer event propagation on the subtasks container prevents DnD from
treating subtask clicks as drag interactions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-31 17:27:38 +02:00
parent 03989976f2
commit cbe877c3c9

View file

@ -270,7 +270,8 @@
<!-- Inline subtasks -->
{#if task.subtasks && task.subtasks.length > 0 && !task.isCompleted}
<div class="subtasks-inline">
<!-- svelte-ignore a11y_no_static_element_interactions -->
<div class="subtasks-inline" onpointerdown={(e) => e.stopPropagation()}>
{#each task.subtasks as subtask (subtask.id)}
<button
class="subtask-row"