From 21b66e9e328d51aaecdf7e289353ebd6c93b5743 Mon Sep 17 00:00:00 2001 From: Robbert Brak Date: Wed, 29 May 2019 11:34:41 +0200 Subject: [PATCH] Force the selection when composition is resolved --- .../handlers/composition/DraftEditorCompositionHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/component/handlers/composition/DraftEditorCompositionHandler.js b/src/component/handlers/composition/DraftEditorCompositionHandler.js index 8b459d347c..dd201ade79 100644 --- a/src/component/handlers/composition/DraftEditorCompositionHandler.js +++ b/src/component/handlers/composition/DraftEditorCompositionHandler.js @@ -225,7 +225,7 @@ const DraftEditorCompositionHandler = { editor.restoreEditorDOM(); - const editorStateWithUpdatedSelection = EditorState.acceptSelection( + const editorStateWithUpdatedSelection = EditorState.forceSelection( editorState, compositionEndSelectionState, );