{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/draft-js/issues/73","repository_url":"https://api.github.com/repos/facebook/draft-js","labels_url":"https://api.github.com/repos/facebook/draft-js/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/facebook/draft-js/issues/73/comments","events_url":"https://api.github.com/repos/facebook/draft-js/issues/73/events","html_url":"https://github.com/facebook/draft-js/issues/73","id":136209535,"number":73,"title":"this.setState({editorState: EditorState.createEmpty()}) doesn't work to clear the component","user":{"login":"rcoh","id":492903,"avatar_url":"https://avatars.githubusercontent.com/u/492903?v=3","gravatar_id":"","url":"https://api.github.com/users/rcoh","html_url":"https://github.com/rcoh","followers_url":"https://api.github.com/users/rcoh/followers","following_url":"https://api.github.com/users/rcoh/following{/other_user}","gists_url":"https://api.github.com/users/rcoh/gists{/gist_id}","starred_url":"https://api.github.com/users/rcoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcoh/subscriptions","organizations_url":"https://api.github.com/users/rcoh/orgs","repos_url":"https://api.github.com/users/rcoh/repos","events_url":"https://api.github.com/users/rcoh/events{/privacy}","received_events_url":"https://api.github.com/users/rcoh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/draft-js/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-02-24T22:36:20Z","updated_at":"2016-03-25T17:44:39Z","closed_at":"2016-03-25T17:44:39Z","body":"With this method, the editor seems to get its internal state corrupted.\r\n```EditorState.moveFocusToEnd(EditorState.createEmpty())``` was required to actually clear the state properly."},"comment":{"url":"https://api.github.com/repos/facebook/draft-js/issues/comments/201382961","html_url":"https://github.com/facebook/draft-js/issues/73#issuecomment-201382961","issue_url":"https://api.github.com/repos/facebook/draft-js/issues/73","id":201382961,"user":{"login":"hellendag","id":2823852,"avatar_url":"https://avatars.githubusercontent.com/u/2823852?v=3","gravatar_id":"","url":"https://api.github.com/users/hellendag","html_url":"https://github.com/hellendag","followers_url":"https://api.github.com/users/hellendag/followers","following_url":"https://api.github.com/users/hellendag/following{/other_user}","gists_url":"https://api.github.com/users/hellendag/gists{/gist_id}","starred_url":"https://api.github.com/users/hellendag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellendag/subscriptions","organizations_url":"https://api.github.com/users/hellendag/orgs","repos_url":"https://api.github.com/users/hellendag/repos","events_url":"https://api.github.com/users/hellendag/events{/privacy}","received_events_url":"https://api.github.com/users/hellendag/received_events","type":"User","site_admin":false},"created_at":"2016-03-25T17:44:39Z","updated_at":"2016-03-25T17:44:39Z","body":"`EditorState.moveFocusToEnd` is now added to the [docs](http://facebook.github.io/draft-js/docs/api-reference-editor-state.html#movefocustoend), so I'm going to go ahead and close this."}}