Skip to content

Commit e914a30

Browse files
hakonharnesHåkon Harnes
andauthored
fix: preserve whitespace in chat input during editing (#361)
Fixes #360. Co-authored-by: Håkon Harnes <hakonh@basis.no>
1 parent a99dca9 commit e914a30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/mention-input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export default function MentionInput({
180180
};
181181
onChange?.({
182182
json,
183-
text: text.trim(),
183+
text,
184184
mentions,
185185
});
186186
},

0 commit comments

Comments
 (0)