diff --git a/lib/components/content.js b/lib/components/content.js index 9a5ed14f2..fa5933979 100644 --- a/lib/components/content.js +++ b/lib/components/content.js @@ -594,13 +594,16 @@ class Content extends React.Component { focusNode.nodeType == 3 ) - data.selection = selection.merge({ + selection = selection.merge({ anchorKey: anchor.key, anchorOffset: anchor.offset, focusKey: focus.key, focusOffset: focus.offset, - isFocused: true + isFocused: true, + isBackward: null }) + + data.selection = selection.normalize(document) } this.props.onSelect(e, data)