mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-20 22:21:20 +02:00
fix isBackward in onSelect event selection (#195)
This commit is contained in:
committed by
Ian Storm Taylor
parent
e6690537fb
commit
dca2efca0f
@@ -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)
|
||||
|
Reference in New Issue
Block a user