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:
parent
247e546b3b
commit
e9f05bc1b4
@ -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()
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user