stop propagation

This commit is contained in:
Lorenzo Migliorero
2024-10-04 11:03:11 +02:00
parent 8f7bffc349
commit f640b4a87f

View File

@@ -110,7 +110,6 @@ export const ShowProjects = () => {
className="space-x-4 text-xs cursor-pointer justify-between"
target="_blank"
href={`${domain.https ? "https" : "http"}://${domain.host}${domain.path}`}
onClick={(e) => e.stopPropagation()}
>
<span>{domain.host}</span>
<ExternalLink className="size-4 shrink-0" />
@@ -138,7 +137,10 @@ export const ShowProjects = () => {
<ExternalLinkIcon className="size-3.5" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent className="w-[200px] space-y-2">
<DropdownMenuContent
className="w-[200px] space-y-2"
onClick={(e) => e.stopPropagation()}
>
{renderDomainsDropdown(project.applications)}
{renderDomainsDropdown(project.compose)}
</DropdownMenuContent>