Skip to content

Commit

Permalink
fix: Delete button cannot be clicked on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
beilunyang committed Jan 15, 2025
1 parent 086ad28 commit c8d060e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/components/emails/email-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@ export function EmailList({ onEmailSelect, selectedEmailId }: EmailListProps) {
variant="ghost"
size="icon"
className="opacity-0 group-hover:opacity-100 h-8 w-8"
onClick={() => setEmailToDelete(email)}
onClick={(e) => {
e.stopPropagation()
setEmailToDelete(email)
}}
>
<Trash2 className="h-4 w-4 text-destructive" />
</Button>
Expand Down

0 comments on commit c8d060e

Please sign in to comment.