Skip to content

Commit

Permalink
Selection breaks in IE11 when Chinese composition ends without modifi…
Browse files Browse the repository at this point in the history
…cations

See facebookarchive#2093
  • Loading branch information
robbertbrak committed May 28, 2019
1 parent 1e4286b commit 32d36a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ const DraftEditorCompositionHandler = {

editor.restoreEditorDOM();

const editorStateWithUpdatedSelection = EditorState.acceptSelection(
const editorStateWithUpdatedSelection = EditorState.forceSelection(
editorState,
compositionEndSelectionState,
);
Expand Down

0 comments on commit 32d36a3

Please sign in to comment.