mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-29 01:50:06 +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
|
||||
|
||||
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