Merge pull request #73 from madhura68/fix/navbar-product-switch-onclick

fix(nav): product-switch dropdown reageert weer op klik
This commit is contained in:
Janpeter Visser 2026-05-04 07:48:02 +02:00 committed by GitHub
commit 13c49eecaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -163,7 +163,7 @@ export function NavBar({
{products.map(p => (
<DropdownMenuItem
key={p.id}
onSelect={() => p.id !== activeProduct.id && handleSwitchProduct(p.id)}
onClick={() => p.id !== activeProduct.id && handleSwitchProduct(p.id)}
className={cn(
p.id === activeProduct.id && 'bg-primary-container text-primary-container-foreground font-medium'
)}