From ab5f0df64c39c4f4dbfef2fa32a1693f564fb71d Mon Sep 17 00:00:00 2001 From: Innei Date: Sun, 5 Oct 2025 23:42:27 +0800 Subject: [PATCH] fix(ai): prevent context menu from appearing on message right-click - Added `stopPropagation` to the context menu event on the AIMarkdownStreamingMessage component to prevent the default context menu from appearing, enhancing user experience during message interactions. Signed-off-by: Innei --- .../modules/ai-chat/components/message/AIMarkdownMessage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/AIMarkdownMessage.tsx b/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/AIMarkdownMessage.tsx index d2a6c763f..50e2a49ab 100644 --- a/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/AIMarkdownMessage.tsx +++ b/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/AIMarkdownMessage.tsx @@ -1,4 +1,4 @@ -import { cn } from "@follow/utils" +import { cn, stopPropagation } from "@follow/utils" import { memo, useRef } from "react" import { MarkdownAnimateText } from "./animated/AnimatedMarkdown" @@ -23,7 +23,7 @@ export const AIMarkdownStreamingMessage = memo( const stableStreamingState = useRef(isStreaming) return ( -
+