Fixed ref
This commit is contained in:
@ -186,7 +186,7 @@ type KeyData = {
|
|||||||
<Header onClick={this.focusAtStart} readOnly={this.props.readOnly} />
|
<Header onClick={this.focusAtStart} readOnly={this.props.readOnly} />
|
||||||
<Toolbar state={this.state.state} onChange={this.onChange} />
|
<Toolbar state={this.state.state} onChange={this.onChange} />
|
||||||
<StyledEditor
|
<StyledEditor
|
||||||
ref={ref => (this.editor = ref)}
|
innerRef={ref => (this.editor = ref)}
|
||||||
placeholder="Start with a title…"
|
placeholder="Start with a title…"
|
||||||
bodyPlaceholder="Insert witty platitude here"
|
bodyPlaceholder="Insert witty platitude here"
|
||||||
schema={this.schema}
|
schema={this.schema}
|
||||||
|
Reference in New Issue
Block a user