1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-04-21 13:51:59 +02:00

fix state.moveTo transform

This commit is contained in:
Ian Storm Taylor 2016-07-12 12:24:13 -07:00
parent 48be173b7b
commit 7aa475d74d

View File

@ -532,10 +532,7 @@ class State extends new Record(DEFAULTS) {
// Pass in properties, and force `isBackward` to be re-resolved.
selection = selection.merge({
anchorKey: properties.anchorKey,
anchorOffset: properties.anchorOffset,
focusKey: properties.focusKey,
focusOffset: properties.focusOffset,
...properties,
isBackward: null
})