From 8776247176fdf148220831756480e7c1b6f96c5b Mon Sep 17 00:00:00 2001 From: "dong.nguyen" Date: Sat, 24 Oct 2026 13:37:24 +0700 Subject: [PATCH] fix(edit): keep the tag add button out of the project card link The project card body is a MotionLink (Projects.tsx, ProjectsListPage.tsx). The chips inside it were safe because they render through EditableText, whose edit-mode onClick does preventDefault + stopPropagation, but the ghost add button was a direct child of the anchor: its click reached the link and the card navigated instead of adding a tag. The add button now stops mousedown and does preventDefault + stopPropagation on click before writing the array - the same guards the item controls and EditableText use. Covers the technologies and the metrics add on both card surfaces. --- src/components/ui/TagListEditor.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/ui/TagListEditor.tsx b/src/components/ui/TagListEditor.tsx index bc441bd..93540a0 100644 --- a/src/components/ui/TagListEditor.tsx +++ b/src/components/ui/TagListEditor.tsx @@ -126,7 +126,16 @@ export function TagListEditor({