mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-29 09:59:48 +02:00
Fix a bug in normalizeNodeByKey (#1786)
This commit is contained in:
committed by
Ian Storm Taylor
parent
3efd6df1e3
commit
b79c4d810d
@@ -47,7 +47,9 @@ Changes.normalizeNodeByKey = (change, key) => {
|
|||||||
if (!ancestors) return
|
if (!ancestors) return
|
||||||
|
|
||||||
ancestors.forEach(ancestor => {
|
ancestors.forEach(ancestor => {
|
||||||
normalizeNode(change, ancestor, schema)
|
if (change.value.document.getDescendant(ancestor.key)) {
|
||||||
|
normalizeNode(change, ancestor, schema)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user