From 6d8d260b42bf126731e1ac4d2c3c645f0a29ab0c Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Wed, 30 Mar 2022 17:45:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=81=8A=E5=A4=A9=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=A1=86=E5=85=81=E8=AE=B8=E5=8F=B3=E9=94=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/ChatBox/ChatInputBox/input.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/components/ChatBox/ChatInputBox/input.tsx b/web/src/components/ChatBox/ChatInputBox/input.tsx index b0d1e3f9..bb44ecae 100644 --- a/web/src/components/ChatBox/ChatInputBox/input.tsx +++ b/web/src/components/ChatBox/ChatInputBox/input.tsx @@ -1,5 +1,6 @@ import { UserListItem } from '@/components/UserListItem'; import { getMessageTextDecorators } from '@/plugin/common'; +import { stopPropagation } from '@/utils/dom-helper'; import React from 'react'; import { Mention, MentionsInput } from 'react-mentions'; import { t } from 'tailchat-shared'; @@ -35,6 +36,7 @@ export const ChatInputBoxInput: React.FC = React.memo( } onKeyDown={props.onKeyDown} onPaste={props.onPaste} + onContextMenu={stopPropagation} allowSuggestionsAboveCursor={true} forceSuggestionsAboveCursor={true} >