{"action":"closed","number":316,"pull_request":{"url":"https://api.github.com/repos/x-team/auto-ui/pulls/316","id":241768535,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxNzY4NTM1","html_url":"https://github.com/x-team/auto-ui/pull/316","diff_url":"https://github.com/x-team/auto-ui/pull/316.diff","patch_url":"https://github.com/x-team/auto-ui/pull/316.patch","issue_url":"https://api.github.com/repos/x-team/auto-ui/issues/316","number":316,"state":"closed","locked":false,"title":"Close dropdown on click by default for single-select items in SelectBox","user":{"login":"reyronald","id":7514993,"node_id":"MDQ6VXNlcjc1MTQ5OTM=","avatar_url":"https://avatars2.githubusercontent.com/u/7514993?v=4","gravatar_id":"","url":"https://api.github.com/users/reyronald","html_url":"https://github.com/reyronald","followers_url":"https://api.github.com/users/reyronald/followers","following_url":"https://api.github.com/users/reyronald/following{/other_user}","gists_url":"https://api.github.com/users/reyronald/gists{/gist_id}","starred_url":"https://api.github.com/users/reyronald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reyronald/subscriptions","organizations_url":"https://api.github.com/users/reyronald/orgs","repos_url":"https://api.github.com/users/reyronald/repos","events_url":"https://api.github.com/users/reyronald/events{/privacy}","received_events_url":"https://api.github.com/users/reyronald/received_events","type":"User","site_admin":false},"body":"**Release Type:** *Breaking change*\r\n\r\nFixes https://x-team-internal.atlassian.net/browse/XP-2426\r\n\r\n## Description\r\n\r\nChange the behavior of the `SelectBox` component so that the dropdown is automatically closed when used to choose only a single item.\r\n\r\n## Checklist\r\n\r\n- [x] set yourself as an assignee\r\n- [x] set appropriate labels for a PR (`In Review` or `In Progress` depending on its status)\r\n- [x] move respective JIRA issue to the `IN REVIEW` column\r\n- [x] make sure your code lints (`npm run lint`)\r\n- [x] Flow typechecks passed (`npm run flow`)\r\n- [x] Snapshots tests passed (`npm run jest`)\r\n- [x] check cleanup tasks (https://github.com/x-team/auto/labels/cleanup) and take a suitable small one (if exists) in a related area of the current changes\r\n- [x] component's documentation (`.stories.js` file) is changed or added accordingly to reflect any new or updated use cases or variants usage.\r\n- [x] if you've fixed a bug or added code that should be tested, add unit tests\r\n- [x] if any snapshots have been changed, verify that component still works and looks as expected and update the changed snapshot\r\n- [x] **manually tested the component** by running it in the browser and checked nothing is broken and operates as expected!\r\n\r\n## Related PRs\r\n\r\nbranch | PR\r\n------ | ------\r\nXP-2426-close-dropdown-after-click | [Auto](https://github.com/x-team/auto/pull/1752)\r\n\r\n## Steps to Test or Reproduce\r\n\r\nPlay around with the SelectBox stories while looking at the code. You will notice that the default behavior now is to always close the dropdown when using it as a single-item select component. Previously, it was always necessary to include the boolean `closeDropdown` prop\r\n\r\n## Screenshots\r\n\r\n![selectbox](https://user-images.githubusercontent.com/7514993/50597533-13101500-0e7e-11e9-89b6-34eb8ee83b75.gif)\r\n\r\n","created_at":"2019-01-02T15:05:24Z","updated_at":"2019-01-03T02:19:09Z","closed_at":"2019-01-03T02:19:09Z","merged_at":"2019-01-03T02:19:09Z","merge_commit_sha":"aeb0572eb5ba07d638d056545de33e79ba14710b","assignee":{"login":"reyronald","id":7514993,"node_id":"MDQ6VXNlcjc1MTQ5OTM=","avatar_url":"https://avatars2.githubusercontent.com/u/7514993?v=4","gravatar_id":"","url":"https://api.github.com/users/reyronald","html_url":"https://github.com/reyronald","followers_url":"https://api.github.com/users/reyronald/followers","following_url":"https://api.github.com/users/reyronald/following{/other_user}","gists_url":"https://api.github.com/users/reyronald/gists{/gist_id}","starred_url":"https://api.github.com/users/reyronald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reyronald/subscriptions","organizations_url":"https://api.github.com/users/reyronald/orgs","repos_url":"https://api.github.com/users/reyronald/repos","events_url":"https://api.github.com/users/reyronald/events{/privacy}","received_events_url":"https://api.github.com/users/reyronald/received_events","type":"User","site_admin":false},"assignees":[{"login":"reyronald","id":7514993,"node_id":"MDQ6VXNlcjc1MTQ5OTM=","avatar_url":"https://avatars2.githubusercontent.com/u/7514993?v=4","gravatar_id":"","url":"https://api.github.com/users/reyronald","html_url":"https://github.com/reyronald","followers_url":"https://api.github.com/users/reyronald/followers","following_url":"https://api.github.com/users/reyronald/following{/other_user}","gists_url":"https://api.github.com/users/reyronald/gists{/gist_id}","starred_url":"https://api.github.com/users/reyronald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reyronald/subscriptions","organizations_url":"https://api.github.com/users/reyronald/orgs","repos_url":"https://api.github.com/users/reyronald/repos","events_url":"https://api.github.com/users/reyronald/events{/privacy}","received_events_url":"https://api.github.com/users/reyronald/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1100599741,"node_id":"MDU6TGFiZWwxMTAwNTk5NzQx","url":"https://api.github.com/repos/x-team/auto-ui/labels/Done","name":"Done","color":"575757","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/x-team/auto-ui/pulls/316/commits","review_comments_url":"https://api.github.com/repos/x-team/auto-ui/pulls/316/comments","review_comment_url":"https://api.github.com/repos/x-team/auto-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/x-team/auto-ui/issues/316/comments","statuses_url":"https://api.github.com/repos/x-team/auto-ui/statuses/4fae4215e0daade2ca432b87d5af2d13b4a60f75","head":{"label":"x-team:XP-2426-close-dropdown-after-click","ref":"XP-2426-close-dropdown-after-click","sha":"4fae4215e0daade2ca432b87d5af2d13b4a60f75","user":{"login":"x-team","id":149462,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0OTQ2Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/149462?v=4","gravatar_id":"","url":"https://api.github.com/users/x-team","html_url":"https://github.com/x-team","followers_url":"https://api.github.com/users/x-team/followers","following_url":"https://api.github.com/users/x-team/following{/other_user}","gists_url":"https://api.github.com/users/x-team/gists{/gist_id}","starred_url":"https://api.github.com/users/x-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x-team/subscriptions","organizations_url":"https://api.github.com/users/x-team/orgs","repos_url":"https://api.github.com/users/x-team/repos","events_url":"https://api.github.com/users/x-team/events{/privacy}","received_events_url":"https://api.github.com/users/x-team/received_events","type":"Organization","site_admin":false},"repo":{"id":102071682,"node_id":"MDEwOlJlcG9zaXRvcnkxMDIwNzE2ODI=","name":"auto-ui","full_name":"x-team/auto-ui","private":false,"owner":{"login":"x-team","id":149462,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0OTQ2Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/149462?v=4","gravatar_id":"","url":"https://api.github.com/users/x-team","html_url":"https://github.com/x-team","followers_url":"https://api.github.com/users/x-team/followers","following_url":"https://api.github.com/users/x-team/following{/other_user}","gists_url":"https://api.github.com/users/x-team/gists{/gist_id}","starred_url":"https://api.github.com/users/x-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x-team/subscriptions","organizations_url":"https://api.github.com/users/x-team/orgs","repos_url":"https://api.github.com/users/x-team/repos","events_url":"https://api.github.com/users/x-team/events{/privacy}","received_events_url":"https://api.github.com/users/x-team/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/x-team/auto-ui","description":"UI component library for the Auto platform","fork":false,"url":"https://api.github.com/repos/x-team/auto-ui","forks_url":"https://api.github.com/repos/x-team/auto-ui/forks","keys_url":"https://api.github.com/repos/x-team/auto-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/x-team/auto-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/x-team/auto-ui/teams","hooks_url":"https://api.github.com/repos/x-team/auto-ui/hooks","issue_events_url":"https://api.github.com/repos/x-team/auto-ui/issues/events{/number}","events_url":"https://api.github.com/repos/x-team/auto-ui/events","assignees_url":"https://api.github.com/repos/x-team/auto-ui/assignees{/user}","branches_url":"https://api.github.com/repos/x-team/auto-ui/branches{/branch}","tags_url":"https://api.github.com/repos/x-team/auto-ui/tags","blobs_url":"https://api.github.com/repos/x-team/auto-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/x-team/auto-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/x-team/auto-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/x-team/auto-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/x-team/auto-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/x-team/auto-ui/languages","stargazers_url":"https://api.github.com/repos/x-team/auto-ui/stargazers","contributors_url":"https://api.github.com/repos/x-team/auto-ui/contributors","subscribers_url":"https://api.github.com/repos/x-team/auto-ui/subscribers","subscription_url":"https://api.github.com/repos/x-team/auto-ui/subscription","commits_url":"https://api.github.com/repos/x-team/auto-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/x-team/auto-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/x-team/auto-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/x-team/auto-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/x-team/auto-ui/contents/{+path}","compare_url":"https://api.github.com/repos/x-team/auto-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/x-team/auto-ui/merges","archive_url":"https://api.github.com/repos/x-team/auto-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/x-team/auto-ui/downloads","issues_url":"https://api.github.com/repos/x-team/auto-ui/issues{/number}","pulls_url":"https://api.github.com/repos/x-team/auto-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/x-team/auto-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/x-team/auto-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/x-team/auto-ui/labels{/name}","releases_url":"https://api.github.com/repos/x-team/auto-ui/releases{/id}","deployments_url":"https://api.github.com/repos/x-team/auto-ui/deployments","created_at":"2017-09-01T03:49:14Z","updated_at":"2018-12-26T18:26:01Z","pushed_at":"2019-01-03T02:19:09Z","git_url":"git://github.com/x-team/auto-ui.git","ssh_url":"git@github.com:x-team/auto-ui.git","clone_url":"https://github.com/x-team/auto-ui.git","svn_url":"https://github.com/x-team/auto-ui","homepage":"https://x-team.github.io/auto-ui/","size":7742,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":2,"open_issues":3,"watchers":4,"default_branch":"master"}},"base":{"label":"x-team:develop","ref":"develop","sha":"2e68595a1c9e422a0bcfa6a771b7cfb5707c1ef0","user":{"login":"x-team","id":149462,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0OTQ2Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/149462?v=4","gravatar_id":"","url":"https://api.github.com/users/x-team","html_url":"https://github.com/x-team","followers_url":"https://api.github.com/users/x-team/followers","following_url":"https://api.github.com/users/x-team/following{/other_user}","gists_url":"https://api.github.com/users/x-team/gists{/gist_id}","starred_url":"https://api.github.com/users/x-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x-team/subscriptions","organizations_url":"https://api.github.com/users/x-team/orgs","repos_url":"https://api.github.com/users/x-team/repos","events_url":"https://api.github.com/users/x-team/events{/privacy}","received_events_url":"https://api.github.com/users/x-team/received_events","type":"Organization","site_admin":false},"repo":{"id":102071682,"node_id":"MDEwOlJlcG9zaXRvcnkxMDIwNzE2ODI=","name":"auto-ui","full_name":"x-team/auto-ui","private":false,"owner":{"login":"x-team","id":149462,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0OTQ2Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/149462?v=4","gravatar_id":"","url":"https://api.github.com/users/x-team","html_url":"https://github.com/x-team","followers_url":"https://api.github.com/users/x-team/followers","following_url":"https://api.github.com/users/x-team/following{/other_user}","gists_url":"https://api.github.com/users/x-team/gists{/gist_id}","starred_url":"https://api.github.com/users/x-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x-team/subscriptions","organizations_url":"https://api.github.com/users/x-team/orgs","repos_url":"https://api.github.com/users/x-team/repos","events_url":"https://api.github.com/users/x-team/events{/privacy}","received_events_url":"https://api.github.com/users/x-team/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/x-team/auto-ui","description":"UI component library for the Auto platform","fork":false,"url":"https://api.github.com/repos/x-team/auto-ui","forks_url":"https://api.github.com/repos/x-team/auto-ui/forks","keys_url":"https://api.github.com/repos/x-team/auto-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/x-team/auto-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/x-team/auto-ui/teams","hooks_url":"https://api.github.com/repos/x-team/auto-ui/hooks","issue_events_url":"https://api.github.com/repos/x-team/auto-ui/issues/events{/number}","events_url":"https://api.github.com/repos/x-team/auto-ui/events","assignees_url":"https://api.github.com/repos/x-team/auto-ui/assignees{/user}","branches_url":"https://api.github.com/repos/x-team/auto-ui/branches{/branch}","tags_url":"https://api.github.com/repos/x-team/auto-ui/tags","blobs_url":"https://api.github.com/repos/x-team/auto-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/x-team/auto-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/x-team/auto-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/x-team/auto-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/x-team/auto-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/x-team/auto-ui/languages","stargazers_url":"https://api.github.com/repos/x-team/auto-ui/stargazers","contributors_url":"https://api.github.com/repos/x-team/auto-ui/contributors","subscribers_url":"https://api.github.com/repos/x-team/auto-ui/subscribers","subscription_url":"https://api.github.com/repos/x-team/auto-ui/subscription","commits_url":"https://api.github.com/repos/x-team/auto-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/x-team/auto-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/x-team/auto-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/x-team/auto-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/x-team/auto-ui/contents/{+path}","compare_url":"https://api.github.com/repos/x-team/auto-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/x-team/auto-ui/merges","archive_url":"https://api.github.com/repos/x-team/auto-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/x-team/auto-ui/downloads","issues_url":"https://api.github.com/repos/x-team/auto-ui/issues{/number}","pulls_url":"https://api.github.com/repos/x-team/auto-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/x-team/auto-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/x-team/auto-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/x-team/auto-ui/labels{/name}","releases_url":"https://api.github.com/repos/x-team/auto-ui/releases{/id}","deployments_url":"https://api.github.com/repos/x-team/auto-ui/deployments","created_at":"2017-09-01T03:49:14Z","updated_at":"2018-12-26T18:26:01Z","pushed_at":"2019-01-03T02:19:09Z","git_url":"git://github.com/x-team/auto-ui.git","ssh_url":"git@github.com:x-team/auto-ui.git","clone_url":"https://github.com/x-team/auto-ui.git","svn_url":"https://github.com/x-team/auto-ui","homepage":"https://x-team.github.io/auto-ui/","size":7742,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":2,"open_issues":3,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/x-team/auto-ui/pulls/316"},"html":{"href":"https://github.com/x-team/auto-ui/pull/316"},"issue":{"href":"https://api.github.com/repos/x-team/auto-ui/issues/316"},"comments":{"href":"https://api.github.com/repos/x-team/auto-ui/issues/316/comments"},"review_comments":{"href":"https://api.github.com/repos/x-team/auto-ui/pulls/316/comments"},"review_comment":{"href":"https://api.github.com/repos/x-team/auto-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/x-team/auto-ui/pulls/316/commits"},"statuses":{"href":"https://api.github.com/repos/x-team/auto-ui/statuses/4fae4215e0daade2ca432b87d5af2d13b4a60f75"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"nicksp","id":579331,"node_id":"MDQ6VXNlcjU3OTMzMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/579331?v=4","gravatar_id":"","url":"https://api.github.com/users/nicksp","html_url":"https://github.com/nicksp","followers_url":"https://api.github.com/users/nicksp/followers","following_url":"https://api.github.com/users/nicksp/following{/other_user}","gists_url":"https://api.github.com/users/nicksp/gists{/gist_id}","starred_url":"https://api.github.com/users/nicksp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicksp/subscriptions","organizations_url":"https://api.github.com/users/nicksp/orgs","repos_url":"https://api.github.com/users/nicksp/repos","events_url":"https://api.github.com/users/nicksp/events{/privacy}","received_events_url":"https://api.github.com/users/nicksp/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":4,"additions":41,"deletions":65,"changed_files":6}}
{"actor":{"display_login":"nicksp"}}