From d6b441dc8c6fdfb5e3dc1fc043787dc099047cfd Mon Sep 17 00:00:00 2001 From: Pavel Meyer Date: Mon, 25 Sep 2023 11:20:18 +0300 Subject: [PATCH] Revert "CW-2031 Fixed issue with emoji adds to end" This reverts commit 69b4a822eaa6b217dd8a8ec0c1052c7c0705fd9c. --- src/shared/ui-kit/TextEditor/BaseTextEditor.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shared/ui-kit/TextEditor/BaseTextEditor.tsx b/src/shared/ui-kit/TextEditor/BaseTextEditor.tsx index 6afc76d893..734db6ff39 100644 --- a/src/shared/ui-kit/TextEditor/BaseTextEditor.tsx +++ b/src/shared/ui-kit/TextEditor/BaseTextEditor.tsx @@ -255,6 +255,7 @@ const BaseTextEditor: FC = (props) => { containerClassName={emojiContainerClassName} pickerContainerClassName={emojiPickerContainerClassName} onEmojiSelect={(emoji) => { + Transforms.select(editor, EditorSlate.end(editor, [])); insertEmoji(editor, emoji.native); }} />