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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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,