1
0
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:
Ian Storm Taylor
2016-11-18 14:33:37 -08:00
parent 59fc2ff892
commit d1beb8088a

View File

@@ -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) {