diff options
author | Brian Kim <brian@tagg.id> | 2021-05-11 11:46:20 -0700 |
---|---|---|
committer | Brian Kim <brian@tagg.id> | 2021-05-11 11:46:20 -0700 |
commit | fd54544b84cc0f13f57dc481ccb11d3183de79c8 (patch) | |
tree | f53fe35c835ee99e3da13cf22b745e76a1cbd0f3 /src/components/comments/AddComment.tsx | |
parent | 4569240e09ff134d49fa11180c0074329a3ac95b (diff) |
Fixed issue with mentions not collapsing when deleting '@' too quickly
Diffstat (limited to 'src/components/comments/AddComment.tsx')
-rw-r--r-- | src/components/comments/AddComment.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/comments/AddComment.tsx b/src/components/comments/AddComment.tsx index 9cf10b5e..28e1a40e 100644 --- a/src/components/comments/AddComment.tsx +++ b/src/components/comments/AddComment.tsx @@ -20,6 +20,7 @@ import {CommentThreadType, CommentType} from '../../types'; import {SCREEN_HEIGHT, SCREEN_WIDTH} from '../../utils'; import {mentionPartTypes} from '../../utils/comments'; import {Avatar} from '../common'; +import {MentionInputControlled} from './MentionInputControlled'; export interface AddCommentProps { momentId: string; @@ -112,7 +113,7 @@ const AddComment: React.FC<AddCommentProps> = ({momentId, placeholderText}) => { ]}> <View style={styles.textContainer}> <Avatar style={styles.avatar} uri={avatar} /> - <MentionInput + <MentionInputControlled containerStyle={styles.text} placeholder={placeholderText} value={inReplyToMention + comment} |