Message: Don't propagate sender avatar click event
This commit is contained in:
parent
0c741adbe4
commit
71b50aae00
1 changed files with 6 additions and 1 deletions
|
@ -1198,7 +1198,12 @@ export class Message extends React.PureComponent<Props, State> {
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="module-message__author-avatar"
|
className="module-message__author-avatar"
|
||||||
onClick={() => showContactModal(author.id)}
|
onClick={(event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => {
|
||||||
|
event.stopPropagation();
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
|
showContactModal(author.id);
|
||||||
|
}}
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
>
|
>
|
||||||
<Avatar
|
<Avatar
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue