mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:01:08 +02:00
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:
parent
03989976f2
commit
cbe877c3c9
1 changed files with 2 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue