diff --git a/components/email/EmailListItem.tsx b/components/email/EmailListItem.tsx index 32f424d2..e7fd5ee7 100644 --- a/components/email/EmailListItem.tsx +++ b/components/email/EmailListItem.tsx @@ -120,6 +120,16 @@ export default function EmailListItem({ : text; }; + // Handle email selection without affecting checkbox + const handleEmailSelect = (e: React.MouseEvent) => { + // Make sure we're not clicking on or near the checkbox + const target = e.target as HTMLElement; + const checkboxArea = target.closest('.checkbox-area'); + if (!checkboxArea) { + onSelect(); + } + }; + return (
{ e.stopPropagation(); }}