⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
fix(web): stop chip taps opening the card menu
Andrej62a19adfaf42
diff --git a/apps/web/src/components/task-chips/stop-card-events.ts b/apps/web/src/components/task-chips/stop-card-events.tsindex 2d676c707..9af260b05 100644--- a/apps/web/src/components/task-chips/stop-card-events.ts+++ b/apps/web/src/components/task-chips/stop-card-events.ts@@ -5,5 +5,5 @@ const stop = (event: SyntheticEvent) => event.stopPropagation();export const stopCardEvents = {onClick: stop,onPointerDown: stop,- onTouchEnd: stop,+ onTouchStart: stop,};diff --git a/apps/web/src/components/task/task-pull-requests/index.tsx b/apps/web/src/components/task/task-pull-requests/index.tsxindex 40af14a63..95d21cf19 100644--- a/apps/web/src/components/task/task-pull-requests/index.tsx+++ b/apps/web/src/components/task/task-pull-requests/index.tsx@@ -1,5 +1,6 @@import { useMemo } from "react";import { useTranslation } from "react-i18next";+import { stopCardEvents } from "@/components/task-chips/stop-card-events";import {HoverCard,HoverCardContent,@@ -46,22 +47,14 @@ export function TaskPullRequests({href={single.href}target="_blank"rel="noopener noreferrer"- onClick={(e) => e.stopPropagation()}- onPointerDown={(e) => e.stopPropagation()}- onTouchEnd={(e) => e.stopPropagation()}+ {...stopCardEvents}className={badgeClassName}><PullRequestStatusIcon status={getPullRequestStatus(single)} /><span>#{single.externalId}</span></a>) : (- <button- type="button"- onClick={(e) => e.stopPropagation()}- onPointerDown={(e) => e.stopPropagation()}- onTouchEnd={(e) => e.stopPropagation()}- className={badgeClassName}- >+ <button type="button" {...stopCardEvents} className={badgeClassName}><PullRequestStatusIconstatus={getPullRequestsStatus(pullRequests)}/>@@ -73,9 +66,7 @@ export function TaskPullRequests({className="w-80 flex-col gap-px p-1"side="bottom"align="start"- onClick={(e) => e.stopPropagation()}- onPointerDown={(e) => e.stopPropagation()}- onTouchEnd={(e) => e.stopPropagation()}+ {...stopCardEvents}onKeyDown={(e) => e.stopPropagation()}>{pullRequests.map((pr) => (