mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-07-31 04:20:26 +02:00
Don't normalize the selection twice when moving the cursor
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user