1
0
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:
Jinxuan Zhu
2018-04-27 17:31:04 -04:00
committed by Ian Storm Taylor
parent 3efd6df1e3
commit b79c4d810d

View File

@@ -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)
}
}) })
} }