mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-11 01:33: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)
|
||||
this.cacheState(state)
|
||||
this.state = { state }
|
||||
this.state.state = state
|
||||
|
||||
// Mix in the event handlers.
|
||||
for (const method of EVENT_HANDLERS) {
|
||||
|
Reference in New Issue
Block a user