From d1beb8088a92cd4dcffdec37388db8cf23b80b88 Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Fri, 18 Nov 2016 14:33:37 -0800 Subject: [PATCH] fix setting initial state in --- src/components/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/editor.js b/src/components/editor.js index b1b30ece8..13e5a14b4 100644 --- a/src/components/editor.js +++ b/src/components/editor.js @@ -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) {