aboutsummaryrefslogtreecommitdiff
path: root/src/components/comments
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/comments')
-rw-r--r--src/components/comments/AddComment.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/comments/AddComment.tsx b/src/components/comments/AddComment.tsx
index f9c5669b..cce846e5 100644
--- a/src/components/comments/AddComment.tsx
+++ b/src/components/comments/AddComment.tsx
@@ -116,7 +116,12 @@ const AddComment: React.FC<AddCommentProps> = ({
containerStyle={styles.text}
placeholder={placeholderText}
value={inReplyToMention + comment}
- onChange={setComment}
+ onChange={(newText: string) => {
+ // skipping the `inReplyToMention` text
+ setComment(
+ newText.substring(inReplyToMention.length, newText.length),
+ );
+ }}
inputRef={ref}
partTypes={mentionPartTypes}
/>