Fix matrix.to links opening in webview in cinny desktop (#1963)
This commit is contained in:
parent
4f2a018ca9
commit
16f2a06186
1 changed files with 1 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ export const useMentionClickHandler = (roomId: string): ReactEventHandler<HTMLEl
|
|||
|
||||
const handleClick: ReactEventHandler<HTMLElement> = useCallback(
|
||||
(evt) => {
|
||||
evt.stopPropagation();
|
||||
evt.preventDefault();
|
||||
const target = evt.currentTarget;
|
||||
const mentionId = target.getAttribute('data-mention-id');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue