{"action":"created","comment":{"url":"https://api.github.com/repos/ONSdigital/eq-author/pulls/comments/126424562","pull_request_review_id":48906197,"id":126424562,"diff_hunk":"@@ -54,6 +54,7 @@ export default class CanvasSection extends Component {\n \n     return (\n       <StyledCanvasSection\n+        onClick={this.handleFocus}","path":"src/components/QuestionnaireDesign/CanvasSection.js","position":4,"original_position":4,"commit_id":"6212e2a39f54b3a905d7f78c40a1e104e725d93d","original_commit_id":"6212e2a39f54b3a905d7f78c40a1e104e725d93d","user":{"login":"hamishtaplin","id":930398,"avatar_url":"https://avatars3.githubusercontent.com/u/930398?v=3","gravatar_id":"","url":"https://api.github.com/users/hamishtaplin","html_url":"https://github.com/hamishtaplin","followers_url":"https://api.github.com/users/hamishtaplin/followers","following_url":"https://api.github.com/users/hamishtaplin/following{/other_user}","gists_url":"https://api.github.com/users/hamishtaplin/gists{/gist_id}","starred_url":"https://api.github.com/users/hamishtaplin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamishtaplin/subscriptions","organizations_url":"https://api.github.com/users/hamishtaplin/orgs","repos_url":"https://api.github.com/users/hamishtaplin/repos","events_url":"https://api.github.com/users/hamishtaplin/events{/privacy}","received_events_url":"https://api.github.com/users/hamishtaplin/received_events","type":"User","site_admin":false},"body":"Just because it's not in focus (the children are) so would be good to disambiguate. No biggie though can always change it another time if it causes any confusion.","created_at":"2017-07-10T13:44:02Z","updated_at":"2017-07-10T13:44:02Z","html_url":"https://github.com/ONSdigital/eq-author/pull/156#discussion_r126424562","pull_request_url":"https://api.github.com/repos/ONSdigital/eq-author/pulls/156","_links":{"self":{"href":"https://api.github.com/repos/ONSdigital/eq-author/pulls/comments/126424562"},"html":{"href":"https://github.com/ONSdigital/eq-author/pull/156#discussion_r126424562"},"pull_request":{"href":"https://api.github.com/repos/ONSdigital/eq-author/pulls/156"}}},"pull_request":{"url":"https://api.github.com/repos/ONSdigital/eq-author/pulls/156","id":129652190,"html_url":"https://github.com/ONSdigital/eq-author/pull/156","diff_url":"https://github.com/ONSdigital/eq-author/pull/156.diff","patch_url":"https://github.com/ONSdigital/eq-author/pull/156.patch","issue_url":"https://api.github.com/repos/ONSdigital/eq-author/issues/156","number":156,"state":"open","locked":false,"title":"allow focus on CanvasSection with a click","user":{"login":"WickyNilliams","id":1091390,"avatar_url":"https://avatars0.githubusercontent.com/u/1091390?v=3","gravatar_id":"","url":"https://api.github.com/users/WickyNilliams","html_url":"https://github.com/WickyNilliams","followers_url":"https://api.github.com/users/WickyNilliams/followers","following_url":"https://api.github.com/users/WickyNilliams/following{/other_user}","gists_url":"https://api.github.com/users/WickyNilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/WickyNilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WickyNilliams/subscriptions","organizations_url":"https://api.github.com/users/WickyNilliams/orgs","repos_url":"https://api.github.com/users/WickyNilliams/repos","events_url":"https://api.github.com/users/WickyNilliams/events{/privacy}","received_events_url":"https://api.github.com/users/WickyNilliams/received_events","type":"User","site_admin":false},"body":"### What is the context of this PR?\r\nClicking on a CanvasSection should be the same as tabbing into a field - optional && empty inputs become visible. Currently this is not the case. This PR fixes that.\r\n\r\n### How to review \r\nRun tests. Inspect code. Test in browser:\r\n\r\n1. go to QuestionnairDesign page\r\n2. delete text from *section description field*\r\n3. tab to another section\r\n4. observe *section description field* is not visible\r\n5. click anywhere in Section section (uh, naming)\r\n6. observe that *section description field* is now visible, even if no field has focus\r\n\r\n\r\n\r\n","created_at":"2017-07-10T10:59:06Z","updated_at":"2017-07-10T13:44:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4cde1abefbcb8cc86052634510acc93f0a51faf","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ONSdigital/eq-author/pulls/156/commits","review_comments_url":"https://api.github.com/repos/ONSdigital/eq-author/pulls/156/comments","review_comment_url":"https://api.github.com/repos/ONSdigital/eq-author/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ONSdigital/eq-author/issues/156/comments","statuses_url":"https://api.github.com/repos/ONSdigital/eq-author/statuses/6212e2a39f54b3a905d7f78c40a1e104e725d93d","head":{"label":"ONSdigital:canvas-section-click-focus","ref":"canvas-section-click-focus","sha":"6212e2a39f54b3a905d7f78c40a1e104e725d93d","user":{"login":"ONSdigital","id":6865137,"avatar_url":"https://avatars3.githubusercontent.com/u/6865137?v=3","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"repo":{"id":82051674,"name":"eq-author","full_name":"ONSdigital/eq-author","owner":{"login":"ONSdigital","id":6865137,"avatar_url":"https://avatars3.githubusercontent.com/u/6865137?v=3","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ONSdigital/eq-author","description":"Author application","fork":false,"url":"https://api.github.com/repos/ONSdigital/eq-author","forks_url":"https://api.github.com/repos/ONSdigital/eq-author/forks","keys_url":"https://api.github.com/repos/ONSdigital/eq-author/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ONSdigital/eq-author/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ONSdigital/eq-author/teams","hooks_url":"https://api.github.com/repos/ONSdigital/eq-author/hooks","issue_events_url":"https://api.github.com/repos/ONSdigital/eq-author/issues/events{/number}","events_url":"https://api.github.com/repos/ONSdigital/eq-author/events","assignees_url":"https://api.github.com/repos/ONSdigital/eq-author/assignees{/user}","branches_url":"https://api.github.com/repos/ONSdigital/eq-author/branches{/branch}","tags_url":"https://api.github.com/repos/ONSdigital/eq-author/tags","blobs_url":"https://api.github.com/repos/ONSdigital/eq-author/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ONSdigital/eq-author/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ONSdigital/eq-author/git/refs{/sha}","trees_url":"https://api.github.com/repos/ONSdigital/eq-author/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ONSdigital/eq-author/statuses/{sha}","languages_url":"https://api.github.com/repos/ONSdigital/eq-author/languages","stargazers_url":"https://api.github.com/repos/ONSdigital/eq-author/stargazers","contributors_url":"https://api.github.com/repos/ONSdigital/eq-author/contributors","subscribers_url":"https://api.github.com/repos/ONSdigital/eq-author/subscribers","subscription_url":"https://api.github.com/repos/ONSdigital/eq-author/subscription","commits_url":"https://api.github.com/repos/ONSdigital/eq-author/commits{/sha}","git_commits_url":"https://api.github.com/repos/ONSdigital/eq-author/git/commits{/sha}","comments_url":"https://api.github.com/repos/ONSdigital/eq-author/comments{/number}","issue_comment_url":"https://api.github.com/repos/ONSdigital/eq-author/issues/comments{/number}","contents_url":"https://api.github.com/repos/ONSdigital/eq-author/contents/{+path}","compare_url":"https://api.github.com/repos/ONSdigital/eq-author/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ONSdigital/eq-author/merges","archive_url":"https://api.github.com/repos/ONSdigital/eq-author/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ONSdigital/eq-author/downloads","issues_url":"https://api.github.com/repos/ONSdigital/eq-author/issues{/number}","pulls_url":"https://api.github.com/repos/ONSdigital/eq-author/pulls{/number}","milestones_url":"https://api.github.com/repos/ONSdigital/eq-author/milestones{/number}","notifications_url":"https://api.github.com/repos/ONSdigital/eq-author/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ONSdigital/eq-author/labels{/name}","releases_url":"https://api.github.com/repos/ONSdigital/eq-author/releases{/id}","deployments_url":"https://api.github.com/repos/ONSdigital/eq-author/deployments","created_at":"2017-02-15T11:06:14Z","updated_at":"2017-06-29T12:39:48Z","pushed_at":"2017-07-10T10:59:07Z","git_url":"git://github.com/ONSdigital/eq-author.git","ssh_url":"git@github.com:ONSdigital/eq-author.git","clone_url":"https://github.com/ONSdigital/eq-author.git","svn_url":"https://github.com/ONSdigital/eq-author","homepage":"http://eq-author.apps.mvp.onsclofo.uk","size":1455,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":3,"default_branch":"master"}},"base":{"label":"ONSdigital:master","ref":"master","sha":"4407f687ab7ef6d52a0da2d4570e9c25a6a32c70","user":{"login":"ONSdigital","id":6865137,"avatar_url":"https://avatars3.githubusercontent.com/u/6865137?v=3","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"repo":{"id":82051674,"name":"eq-author","full_name":"ONSdigital/eq-author","owner":{"login":"ONSdigital","id":6865137,"avatar_url":"https://avatars3.githubusercontent.com/u/6865137?v=3","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ONSdigital/eq-author","description":"Author application","fork":false,"url":"https://api.github.com/repos/ONSdigital/eq-author","forks_url":"https://api.github.com/repos/ONSdigital/eq-author/forks","keys_url":"https://api.github.com/repos/ONSdigital/eq-author/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ONSdigital/eq-author/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ONSdigital/eq-author/teams","hooks_url":"https://api.github.com/repos/ONSdigital/eq-author/hooks","issue_events_url":"https://api.github.com/repos/ONSdigital/eq-author/issues/events{/number}","events_url":"https://api.github.com/repos/ONSdigital/eq-author/events","assignees_url":"https://api.github.com/repos/ONSdigital/eq-author/assignees{/user}","branches_url":"https://api.github.com/repos/ONSdigital/eq-author/branches{/branch}","tags_url":"https://api.github.com/repos/ONSdigital/eq-author/tags","blobs_url":"https://api.github.com/repos/ONSdigital/eq-author/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ONSdigital/eq-author/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ONSdigital/eq-author/git/refs{/sha}","trees_url":"https://api.github.com/repos/ONSdigital/eq-author/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ONSdigital/eq-author/statuses/{sha}","languages_url":"https://api.github.com/repos/ONSdigital/eq-author/languages","stargazers_url":"https://api.github.com/repos/ONSdigital/eq-author/stargazers","contributors_url":"https://api.github.com/repos/ONSdigital/eq-author/contributors","subscribers_url":"https://api.github.com/repos/ONSdigital/eq-author/subscribers","subscription_url":"https://api.github.com/repos/ONSdigital/eq-author/subscription","commits_url":"https://api.github.com/repos/ONSdigital/eq-author/commits{/sha}","git_commits_url":"https://api.github.com/repos/ONSdigital/eq-author/git/commits{/sha}","comments_url":"https://api.github.com/repos/ONSdigital/eq-author/comments{/number}","issue_comment_url":"https://api.github.com/repos/ONSdigital/eq-author/issues/comments{/number}","contents_url":"https://api.github.com/repos/ONSdigital/eq-author/contents/{+path}","compare_url":"https://api.github.com/repos/ONSdigital/eq-author/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ONSdigital/eq-author/merges","archive_url":"https://api.github.com/repos/ONSdigital/eq-author/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ONSdigital/eq-author/downloads","issues_url":"https://api.github.com/repos/ONSdigital/eq-author/issues{/number}","pulls_url":"https://api.github.com/repos/ONSdigital/eq-author/pulls{/number}","milestones_url":"https://api.github.com/repos/ONSdigital/eq-author/milestones{/number}","notifications_url":"https://api.github.com/repos/ONSdigital/eq-author/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ONSdigital/eq-author/labels{/name}","releases_url":"https://api.github.com/repos/ONSdigital/eq-author/releases{/id}","deployments_url":"https://api.github.com/repos/ONSdigital/eq-author/deployments","created_at":"2017-02-15T11:06:14Z","updated_at":"2017-06-29T12:39:48Z","pushed_at":"2017-07-10T10:59:07Z","git_url":"git://github.com/ONSdigital/eq-author.git","ssh_url":"git@github.com:ONSdigital/eq-author.git","clone_url":"https://github.com/ONSdigital/eq-author.git","svn_url":"https://github.com/ONSdigital/eq-author","homepage":"http://eq-author.apps.mvp.onsclofo.uk","size":1455,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ONSdigital/eq-author/pulls/156"},"html":{"href":"https://github.com/ONSdigital/eq-author/pull/156"},"issue":{"href":"https://api.github.com/repos/ONSdigital/eq-author/issues/156"},"comments":{"href":"https://api.github.com/repos/ONSdigital/eq-author/issues/156/comments"},"review_comments":{"href":"https://api.github.com/repos/ONSdigital/eq-author/pulls/156/comments"},"review_comment":{"href":"https://api.github.com/repos/ONSdigital/eq-author/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ONSdigital/eq-author/pulls/156/commits"},"statuses":{"href":"https://api.github.com/repos/ONSdigital/eq-author/statuses/6212e2a39f54b3a905d7f78c40a1e104e725d93d"}}}}
{"actor":{"display_login":"hamishtaplin"}}