mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-31 02:49:56 +02:00
fix to normalize selection
This commit is contained in:
@@ -294,6 +294,7 @@ function setSelection(state, operation) {
|
||||
}
|
||||
|
||||
selection = selection.merge(properties)
|
||||
selection = selection.normalize(document)
|
||||
state = state.merge({ selection })
|
||||
return state
|
||||
}
|
||||
|
Reference in New Issue
Block a user