mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-11 09:43:58 +02:00
fix setting initial state in <Editor>
This commit is contained in:
@@ -93,7 +93,7 @@ class Editor extends React.Component {
|
|||||||
|
|
||||||
const state = this.onBeforeChange(props.state)
|
const state = this.onBeforeChange(props.state)
|
||||||
this.cacheState(state)
|
this.cacheState(state)
|
||||||
this.state = { state }
|
this.state.state = state
|
||||||
|
|
||||||
// Mix in the event handlers.
|
// Mix in the event handlers.
|
||||||
for (const method of EVENT_HANDLERS) {
|
for (const method of EVENT_HANDLERS) {
|
||||||
|
Reference in New Issue
Block a user