Fix user pill click (#10359)

This commit is contained in:
Michael Weimann
2023-03-13 15:43:13 +01:00
committed by GitHub
parent 1e46efe89c
commit 41d88ad6ae
3 changed files with 210 additions and 177 deletions

View File

@@ -167,6 +167,7 @@ export const usePermalink: (args: Args) => HookResult = ({ room, type: argType,
text = member.name || resourceId;
onClick = (e: ButtonEvent): void => {
e.preventDefault();
e.stopPropagation();
dis.dispatch({
action: Action.ViewUser,
member: member,