mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-15 11:44:05 +02:00
Fix extracting relative ranges from decorations. (#2970)
This commit is contained in:
committed by
Ian Storm Taylor
parent
f4283866f2
commit
1895c6696f
@@ -177,9 +177,9 @@ class Node extends React.Component {
|
|||||||
const sel = selection && getRelativeRange(node, i, selection)
|
const sel = selection && getRelativeRange(node, i, selection)
|
||||||
|
|
||||||
const decs = newDecorations
|
const decs = newDecorations
|
||||||
|
.concat(decorations)
|
||||||
.map(d => getRelativeRange(node, i, d))
|
.map(d => getRelativeRange(node, i, d))
|
||||||
.filter(d => d)
|
.filter(d => d)
|
||||||
.concat(decorations)
|
|
||||||
|
|
||||||
const anns = annotations
|
const anns = annotations
|
||||||
.map(a => getRelativeRange(node, i, a))
|
.map(a => getRelativeRange(node, i, a))
|
||||||
|
Reference in New Issue
Block a user