Skip to content

Commit 39fb3c8

Browse files
committed
[benc/remove-json-mode-toggle] Populate JSON when editor changes
1 parent fb2f21c commit 39fb3c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/perseus-editor/src/editor-page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ class EditorPage extends React.Component<Props, State> {
204204
handleChange: ChangeHandler = (toChange, cb, silent) => {
205205
const newProps = _(this.props).pick("question", "hints", "answerArea");
206206
_(newProps).extend(toChange);
207+
this.setState({json: this.serialize()});
207208
this.props.onChange(newProps, cb, silent);
208209
};
209210

0 commit comments

Comments
 (0)