why
This commit is contained in:
@@ -100,7 +100,10 @@ export class PureEditorContent extends React.Component<EditorContentProps, Edito
|
||||
return (
|
||||
<>
|
||||
<div ref={this.editorContentRef} />
|
||||
<Portals renderers={this.state.renderers} />
|
||||
{
|
||||
// @ts-ignore
|
||||
<Portals renderers={this.state.renderers} />
|
||||
}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user