Skip to content

Commit

Permalink
Merge pull request #671 from GetStream/fix-space-in-user-list
Browse files Browse the repository at this point in the history
fix: user mentions can have spaces
  • Loading branch information
szuperaz authored Dec 2, 2024
2 parents 5e8eb3e + ebc3122 commit 5a4495e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export class AutocompleteTextareaComponent
private userMentionConfig: Mentions = {
triggerChar: this.mentionTriggerChar,
dropUp: true,
allowSpace: true,
labelKey: this.autocompleteKey,
returnTrigger: true,
mentionFilter: (
Expand Down Expand Up @@ -252,6 +253,7 @@ export class AutocompleteTextareaComponent
this.mentionedUsers.push((item.user ? item.user : item) as UserResponse);
this.userMentions.next([...this.mentionedUsers]);
}
this.searchTerm$.next('');
return triggerChar + item.autocompleteLabel + ' ';
}

Expand Down

0 comments on commit 5a4495e

Please sign in to comment.