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} >