aboutsummaryrefslogtreecommitdiff
path: root/src/utils/comments.tsx
diff options
context:
space:
mode:
authorBrian Kim <brian@tagg.id>2021-05-10 15:10:31 -0700
committerBrian Kim <brian@tagg.id>2021-05-10 15:10:31 -0700
commit4bc27c266710fbab8c028c6fdbaf4fd158b3dcc2 (patch)
tree2e1b9409978cf7d321119d398fd0bb468327aa7f /src/utils/comments.tsx
parent49136f4056cb40f43d282d534aacf27076f47d8b (diff)
Fixed up keyboard mentions
Diffstat (limited to 'src/utils/comments.tsx')
-rw-r--r--src/utils/comments.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/comments.tsx b/src/utils/comments.tsx
index 0d551682..d7091d1e 100644
--- a/src/utils/comments.tsx
+++ b/src/utils/comments.tsx
@@ -78,13 +78,14 @@ export const renderTextWithMentions: React.FC<RenderProps> = ({
);
};
-export const mentionPartTypes: (style: 'blue' | 'white') => PartType[] = (
+export const mentionPartTypes: (style: 'blue' | 'white', textRef: any) => PartType[] = (
style,
+ textRef
) => {
return [
{
trigger: '@',
- renderSuggestions: (props) => <TaggTypeahead {...props} />,
+ renderSuggestions: (props) => <TaggTypeahead textRef={textRef} {...props} />,
allowedSpacesCount: 0,
isInsertSpaceAfterMention: true,
textStyle: