fix: stopPropagation on mobile move buttons, prevent modal on move
Some checks failed
Deploy Web Client / deploy (push) Has been cancelled

This commit is contained in:
Markov 2026-02-15 23:48:27 +01:00
parent b89969a7a0
commit eff6724455

View File

@ -142,7 +142,7 @@ export default function KanbanBoard({ projectId }: Props) {
<div className="flex gap-1 mt-2 ml-4"> <div className="flex gap-1 mt-2 ml-4">
{colIndex > 0 && ( {colIndex > 0 && (
<button <button
onClick={() => handleMoveTask(task.id, COLUMNS[colIndex - 1].key)} onClick={(e) => { e.stopPropagation(); handleMoveTask(task.id, COLUMNS[colIndex - 1].key); }}
className="text-xs px-2 py-0.5 rounded bg-white/5 text-[var(--muted)] className="text-xs px-2 py-0.5 rounded bg-white/5 text-[var(--muted)]
hover:text-[var(--fg)]" hover:text-[var(--fg)]"
> >
@ -151,7 +151,7 @@ export default function KanbanBoard({ projectId }: Props) {
)} )}
{colIndex < COLUMNS.length - 1 && ( {colIndex < COLUMNS.length - 1 && (
<button <button
onClick={() => handleMoveTask(task.id, COLUMNS[colIndex + 1].key)} onClick={(e) => { e.stopPropagation(); handleMoveTask(task.id, COLUMNS[colIndex + 1].key); }}
className="text-xs px-2 py-0.5 rounded bg-white/5 text-[var(--muted)] className="text-xs px-2 py-0.5 rounded bg-white/5 text-[var(--muted)]
hover:text-[var(--fg)]" hover:text-[var(--fg)]"
> >