This commit is contained in:
Philipp Kühn
2021-04-06 23:00:03 +02:00
parent c83cd59df1
commit 92c2c81b8e
4 changed files with 11 additions and 3 deletions

View File

@@ -55,8 +55,12 @@ class ReactNodeView extends NodeView<React.FunctionComponent, Editor> {
}, [])
return (
// @ts-ignore
<ReactNodeViewContext.Provider value={{ onDragStart, isEditable }}>
<Component {...componentProps} />
{
// @ts-ignore
<Component {...componentProps} />
}
</ReactNodeViewContext.Provider>
)
}