Skip to content

Commit

Permalink
fix: render state text
Browse files Browse the repository at this point in the history
  • Loading branch information
sylingd committed Jan 4, 2021
1 parent ddbf9d0 commit e92000f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ class Editor extends React.Component<EditorProps, EditorState> {
}

componentDidMount() {
this.renderHTML(this.props.value || this.props.defaultValue || '');
const { text } = this.state;
this.renderHTML(text);
emitter.on(emitter.EVENT_LANG_CHANGE, this.handleLocaleUpdate);
// init i18n
i18n.setUp();
Expand Down

0 comments on commit e92000f

Please sign in to comment.