Skip to content

Commit

Permalink
fix: add space after mentioned user's name
Browse files Browse the repository at this point in the history
  • Loading branch information
szuperaz committed Jul 3, 2024
1 parent d6eabc3 commit 2e17132
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ describe('AutocompleteTextareaComponent', () => {
},
'@'
)
).toBe('@Jack');
).toBe('@Jack ');
});

it('should update mentioned users if sent is triggered', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,7 @@ export class AutocompleteTextareaComponent
this.mentionedUsers.push((item.user ? item.user : item) as UserResponse);
this.userMentions.next([...this.mentionedUsers]);
}
return (
triggerChar +
item.autocompleteLabel +
(triggerChar === this.commandTriggerChar ? ' ' : '')
);
return triggerChar + item.autocompleteLabel + ' ';
}

autcompleteSearchTermChanged(searchTerm: string) {
Expand Down

0 comments on commit 2e17132

Please sign in to comment.