Call onChange after normalization

This commit is contained in:
Ulion 2021-01-22 09:52:16 +08:00
parent f65ab040ee
commit 4a150a5125

View File

@ -100,9 +100,10 @@ export const AutomergeEditor = {
Editor.withoutNormalizing(e, () => { Editor.withoutNormalizing(e, () => {
e.children = toJS(mergedDoc).children e.children = toJS(mergedDoc).children
e.onChange()
}) })
// onChange expect valid doc, we make sure do normalization before that.
e.onChange()
}, },
/** /**