Skip to content

Commit

Permalink
add task solution
Browse files Browse the repository at this point in the history
  • Loading branch information
AvramenkoMarina committed Aug 30, 2024
1 parent a1800d0 commit ebd4913
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/UserSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const UserSelector: React.FC<Props> = ({
className="button"
aria-haspopup="true"
aria-controls="dropdown-menu"
onClick={handlerToggleMenu}
onMouseDown={handlerToggleMenu}
onBlur={handlerOnBlur}
>
{selectedUser ? (
Expand All @@ -70,7 +70,7 @@ export const UserSelector: React.FC<Props> = ({
'is-active': selectedUser?.id === id,
})}
key={id}
onClick={() => handleUserSelect(user)}
onMouseDown={() => handleUserSelect(user)}
>
{name}
</a>
Expand Down

0 comments on commit ebd4913

Please sign in to comment.