Skip to content

Commit

Permalink
Pass user ID back with onMention function call
Browse files Browse the repository at this point in the history
  • Loading branch information
lewishankinson committed Jan 18, 2024
1 parent 6fd34c2 commit 31d9ed2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Comment/CommentForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ function CommentForm({
>
<Mention
trigger="@"
onAdd={onMention}
onAdd={(id: number) => {
onMention(id);
}}
data={(search: any) => searchForUsers(search)}
appendSpaceOnAdd
markup="@[__display__]"
Expand Down

0 comments on commit 31d9ed2

Please sign in to comment.