{"action":"created","issue":{"url":"https://api.github.com/repos/Khan/perseus/issues/71","repository_url":"https://api.github.com/repos/Khan/perseus","labels_url":"https://api.github.com/repos/Khan/perseus/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/Khan/perseus/issues/71/comments","events_url":"https://api.github.com/repos/Khan/perseus/issues/71/events","html_url":"https://github.com/Khan/perseus/issues/71","id":154505373,"number":71,"title":"Adding some types of widgets clears the question","user":{"login":"JJC1138","id":428774,"avatar_url":"https://avatars.githubusercontent.com/u/428774?v=3","gravatar_id":"","url":"https://api.github.com/users/JJC1138","html_url":"https://github.com/JJC1138","followers_url":"https://api.github.com/users/JJC1138/followers","following_url":"https://api.github.com/users/JJC1138/following{/other_user}","gists_url":"https://api.github.com/users/JJC1138/gists{/gist_id}","starred_url":"https://api.github.com/users/JJC1138/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JJC1138/subscriptions","organizations_url":"https://api.github.com/users/JJC1138/orgs","repos_url":"https://api.github.com/users/JJC1138/repos","events_url":"https://api.github.com/users/JJC1138/events{/privacy}","received_events_url":"https://api.github.com/users/JJC1138/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-12T15:02:16Z","updated_at":"2016-05-12T16:42:28Z","closed_at":null,"body":"As of https://github.com/Khan/perseus/commit/b1a67d6e0db052655be484ed92aafec335448cb5 adding some types of widgets is clearing the question area.\r\n\r\nIt happens when adding:\r\nExample Graphie Widget, Number Line, Grapher, Interaction, Simulator\r\n\r\nIt happens when adding the widget using the dropdown, or by pasting in e.g. `[[☃ number-line 1]]` to the question text area.\r\n\r\nBy putting a breakpoint on `Editor.render()` you can see that the widget does actually get added successfully before the question is cleared."},"comment":{"url":"https://api.github.com/repos/Khan/perseus/issues/comments/218815254","html_url":"https://github.com/Khan/perseus/issues/71#issuecomment-218815254","issue_url":"https://api.github.com/repos/Khan/perseus/issues/71","id":218815254,"user":{"login":"JJC1138","id":428774,"avatar_url":"https://avatars.githubusercontent.com/u/428774?v=3","gravatar_id":"","url":"https://api.github.com/users/JJC1138","html_url":"https://github.com/JJC1138","followers_url":"https://api.github.com/users/JJC1138/followers","following_url":"https://api.github.com/users/JJC1138/following{/other_user}","gists_url":"https://api.github.com/users/JJC1138/gists{/gist_id}","starred_url":"https://api.github.com/users/JJC1138/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JJC1138/subscriptions","organizations_url":"https://api.github.com/users/JJC1138/orgs","repos_url":"https://api.github.com/users/JJC1138/repos","events_url":"https://api.github.com/users/JJC1138/events{/privacy}","received_events_url":"https://api.github.com/users/JJC1138/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T16:42:28Z","updated_at":"2016-05-12T16:42:28Z","body":"So (excuse me for showing my ignorance here) I guess the problem is either that those widgets are causing the re-render, or it's that changes to the question aren't getting threaded up to `EditorPage` so that it can re-render without causing any problems? I'd guess the latter?"}}