1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-01 05:16:10 +01:00

fix selection.marks preservation from #2181

This commit is contained in:
Ian Storm Taylor 2018-09-18 10:08:33 -07:00
parent 4749cfc8b1
commit 018ada8b88

View File

@ -677,10 +677,6 @@ function AfterPlugin() {
if (next) range = range.moveFocusTo(next.key, 0)
}
// Preserve active marks from the current selection.
// They will be cleared by `change.select` if the selection actually moved.
range = range.set('marks', value.selection.marks)
let selection = document.createSelection(range)
selection = selection.setIsFocused(true)