mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-14 03:03:58 +02:00
fix reference to change.state
This commit is contained in:
@@ -45,7 +45,7 @@ Changes.normalizeNodeByKey = (change, key) => {
|
|||||||
|
|
||||||
normalizeNodeAndChildren(change, node, schema)
|
normalizeNodeAndChildren(change, node, schema)
|
||||||
|
|
||||||
document = change.state.document
|
document = change.value.document
|
||||||
const ancestors = document.getAncestors(key)
|
const ancestors = document.getAncestors(key)
|
||||||
if (!ancestors) return
|
if (!ancestors) return
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user