diff options
author | Ivan Chen <ivan@tagg.id> | 2021-05-11 18:13:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-11 18:13:54 -0400 |
commit | 610b6c9ddd2414b3b0d5c4cc24c35ef6e9e68513 (patch) | |
tree | 466db58bf218687603e636181b3567e1b2de7f26 /src/components/comments/AddComment.tsx | |
parent | 4569240e09ff134d49fa11180c0074329a3ac95b (diff) | |
parent | d760f15aa6971c39f028e18a007a5c56f08b6149 (diff) |
Merge pull request #413 from brian-tagg/mentionsCollapse
[TMA-847] 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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/comments/AddComment.tsx b/src/components/comments/AddComment.tsx index 9cf10b5e..befaa8fe 100644 --- a/src/components/comments/AddComment.tsx +++ b/src/components/comments/AddComment.tsx @@ -7,7 +7,6 @@ import { TextInput, View, } from 'react-native'; -import {MentionInput} from 'react-native-controlled-mentions'; import {TouchableOpacity} from 'react-native-gesture-handler'; import {useDispatch, useSelector} from 'react-redux'; import UpArrowIcon from '../../assets/icons/up_arrow.svg'; @@ -20,6 +19,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 +112,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} |