Fix matrix.to links opening in webview in cinny desktop (#1963)

This commit is contained in:
Krishan
2024-09-22 14:38:55 +10:00
committed by GitHub
parent 21164a9b61
commit 6e191d3c79

View File

@@ -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');