fix another bug for updating node views

This commit is contained in:
Philipp Kühn
2021-07-28 14:51:58 +02:00
parent d7f6e0ce3f
commit 6ef931f85d
3 changed files with 3 additions and 3 deletions

View File

@@ -132,7 +132,7 @@ class ReactNodeView extends NodeView<React.FunctionComponent, Editor, ReactNodeV
oldDecorations,
newNode: node,
newDecorations: decorations,
updateProps,
updateProps: () => updateProps({ node, decorations }),
})
}

View File

@@ -137,7 +137,7 @@ class VueNodeView extends NodeView<(Vue | VueConstructor), Editor, VueNodeViewRe
oldDecorations,
newNode: node,
newDecorations: decorations,
updateProps,
updateProps: () => updateProps({ node, decorations }),
})
}

View File

@@ -138,7 +138,7 @@ class VueNodeView extends NodeView<Component, Editor, VueNodeViewRendererOptions
oldDecorations,
newNode: node,
newDecorations: decorations,
updateProps,
updateProps: () => updateProps({ node, decorations }),
})
}