diff --git a/apps/web/components/recipe/recipes-grid.tsx b/apps/web/components/recipe/recipes-grid.tsx index e371a58..5999798 100644 --- a/apps/web/components/recipe/recipes-grid.tsx +++ b/apps/web/components/recipe/recipes-grid.tsx @@ -49,7 +49,10 @@ type Recipe = { /** Stops the click from bubbling to the card's own Link/select handler. */ function StopPropagation({ children }: { children: React.ReactNode }) { - return
e.stopPropagation()}>{children}
; + // preventDefault is required too — stopPropagation alone doesn't stop the ancestor + // Link's native anchor navigation, since that's the browser's default action for the + // click event reaching the , not a bubbling JS handler stopPropagation can block. + return
{ e.preventDefault(); e.stopPropagation(); }}>{children}
; } type ViewMode = "grid" | "list" | "compact";