Profile dropdown menu will close after avatar is clicked (#5136)
Co-authored-by: alannnc <alannnc@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>pull/5160/head^2
parent
b7892b10ef
commit
79df03de49
|
@ -238,7 +238,7 @@ function UserDropdown({ small }: { small?: boolean }) {
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<Dropdown open={menuOpen}>
|
<Dropdown open={menuOpen}>
|
||||||
<DropdownMenuTrigger asChild onClick={() => setMenuOpen(true)}>
|
<DropdownMenuTrigger asChild onClick={() => setMenuOpen((menuOpen) => !menuOpen)}>
|
||||||
<button className="group flex w-full cursor-pointer appearance-none items-center rounded-full p-2 text-left outline-none hover:bg-gray-100 sm:pl-3 md:rounded-none lg:pl-2">
|
<button className="group flex w-full cursor-pointer appearance-none items-center rounded-full p-2 text-left outline-none hover:bg-gray-100 sm:pl-3 md:rounded-none lg:pl-2">
|
||||||
<span
|
<span
|
||||||
className={classNames(
|
className={classNames(
|
||||||
|
|
Loading…
Reference in New Issue