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:
commit
13c49eecaa
1 changed files with 1 additions and 1 deletions
|
|
@ -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'
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue