1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-03 04:02:33 +02:00

Adding normalize false to the moveNodeByKey call in deleteAtRange (#1506)

This commit is contained in:
Ryan Yurkanin
2018-01-05 19:06:18 -05:00
committed by Ian Storm Taylor
parent fc121b5821
commit 7b8760fe60

View File

@@ -236,7 +236,7 @@ Changes.deleteAtRange = (change, range, options = {}) => {
// Move the end block to be right after the start block.
if (endParentIndex != startParentIndex + 1) {
change.moveNodeByKey(endBlock.key, startParent.key, startParentIndex + 1)
change.moveNodeByKey(endBlock.key, startParent.key, startParentIndex + 1, { normalize: false })
}
// If the selection is hanging, just remove the start block, otherwise