mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-14 19:24:09 +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 decs = newDecorations
|
||||
.concat(decorations)
|
||||
.map(d => getRelativeRange(node, i, d))
|
||||
.filter(d => d)
|
||||
.concat(decorations)
|
||||
|
||||
const anns = annotations
|
||||
.map(a => getRelativeRange(node, i, a))
|
||||
|
Reference in New Issue
Block a user