Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update card-list-card.tsx

Tim Wilson1a9235a12b63
diff --git a/packages/ui/src/card-list/card-list-card.tsx b/packages/ui/src/card-list/card-list-card.tsx
index 0c0706e8e2..d24d592fd5 100644
--- a/packages/ui/src/card-list/card-list-card.tsx
+++ b/packages/ui/src/card-list/card-list-card.tsx
@@ -47,6 +47,7 @@ export function CardListCard({
onClick={
onClick
? (e) => {
+ // Traverse up the DOM tree to see if there's a clickable element between this card and the click
for (
let target = e.target as HTMLElement, i = 0;
target !== e.currentTarget && i < 100; // Only go 100 levels deep