Skip to content
Snippets Groups Projects
Unverified Commit 7d17f103 authored by Yash Rajpal's avatar Yash Rajpal Committed by GitHub
Browse files

regression: Fix reactions tooltip (#31570)

parent ead09079
Loading
......@@ -26,7 +26,7 @@ const Reactions = ({ message }: ReactionsProps): ReactElement => {
counter={reactions.usernames.length}
hasReacted={hasReacted}
name={name}
names={reactions.usernames.filter((user) => user !== username)}
names={reactions.usernames.filter((user) => user !== username).map((username) => `@${username}`)}
messageId={message._id}
onClick={() => toggleReactionMutation.mutate({ mid: message._id, reaction: name })}
/>
......
......@@ -97,7 +97,7 @@ const Reaction = ({ hasReacted, counter, name, names, messageId, ...props }: Rea
tabIndex={0}
role='button'
// if data-tooltip is not set, the tooltip will close on first mouse enter
data-tooltip
data-tooltip=''
onMouseEnter={async (e) => {
e.stopPropagation();
e.preventDefault();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment