Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

fix: add space after adding a mention (#1543)

bautistaaad0d2ab00d1cc
diff --git a/apps/web/src/components/mention/mention-input.tsx b/apps/web/src/components/mention/mention-input.tsx
index bd7d27b0..43f16524 100644
--- a/apps/web/src/components/mention/mention-input.tsx
+++ b/apps/web/src/components/mention/mention-input.tsx
@@ -57,7 +57,7 @@ export function MentionInput(props: Props) {
return `${text.slice(0, cursorPosition - fullWord.length)}@${username}${text.slice(
cursorPosition,
- )}`;
+ )} `;
};
// this handles the scenario where a user uses arrow keys