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:
committed by
Ian Storm Taylor
parent
fc121b5821
commit
7b8760fe60
@@ -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
|
||||
|
Reference in New Issue
Block a user