Fix matrix.to links opening in webview in cinny desktop (#1963)
authorKrishan <33421343+kfiven@users.noreply.github.com>
Sun, 22 Sep 2024 04:38:55 +0000 (14:38 +1000)
committerGitHub <noreply@github.com>
Sun, 22 Sep 2024 04:38:55 +0000 (10:08 +0530)
src/app/hooks/useMentionClickHandler.ts

index f8f4bf545ea702d5a14cf416699e9fdbfd44a4c2..49c291c72eed863ea7ed769d2712e742f61489ae 100644 (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');