Compare commits

...

1 Commits

Author SHA1 Message Date
pablonyx
9523df353d update 2025-04-03 12:45:25 -07:00

View File

@@ -43,13 +43,15 @@ const DropdownOption: React.FC<DropdownOptionProps> = ({
if (href) {
return (
<Link
// Use a button instead of a link to avoid the default behavior of Next.js
// Which caches existing contexts and leads to wonky behavior.
<a
href={href}
target={openInNewTab ? "_blank" : undefined}
rel={openInNewTab ? "noopener noreferrer" : undefined}
>
{content}
</Link>
</a>
);
} else {
return <div onClick={onClick}>{content}</div>;