mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Prevent click-outside from losing children refs (#626)
fix(site): prevent click-outside to close children ref * feat: Add forwardRef for compatibility * fix(site): remove asChild for dropdown Fragment Co-authored-by: Dom Sip <dom@vercel.com>
This commit is contained in:
@@ -69,7 +69,7 @@ const UserNav: React.FC<{
|
||||
{process.env.COMMERCE_CUSTOMERAUTH_ENABLED && (
|
||||
<li className={s.item}>
|
||||
<Dropdown>
|
||||
<DropdownTrigger asChild>
|
||||
<DropdownTrigger>
|
||||
<button
|
||||
aria-label="Menu"
|
||||
className={s.avatarButton}
|
||||
|
Reference in New Issue
Block a user