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

Don't normalize the selection twice when moving the cursor

This commit is contained in:
Samy Pessé 2016-11-01 14:35:40 +01:00
parent 247e546b3b
commit e9f05bc1b4

View File

@ -692,8 +692,8 @@ function Plugin(options = {}) {
.transform()
.moveTo(selection)
// Since the document has not changed, We only normalize the selection
.normalizeSelection()
.apply({ normalize: false })
// This is done in transform.apply
.apply()
}
/**