Skip to content

Commit

Permalink
Fixed spacing bug after mentions in comments (mozilla#3252)
Browse files Browse the repository at this point in the history
  • Loading branch information
harmitgoswami authored Jun 6, 2024
1 parent 1f7b292 commit 17965f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions translate/src/modules/comments/components/AddComment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ export function AddComment({
children: [{ text: name }],
};
Transforms.insertNodes(editor, mention);
Transforms.move(editor);
Transforms.select(editor, Editor.end(editor, []));
Transforms.insertText(editor, ' ');
},
[],
[editor],
);

useEffect(initMentions, []);
Expand Down

0 comments on commit 17965f2

Please sign in to comment.