{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3211","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3211/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3211/comments","events_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3211/events","html_url":"https://github.com/angular-ui/bootstrap/pull/3211","id":55015201,"number":3211,"title":"Optional autofocus on typeahead selection","user":{"login":"angi-","id":4930670,"avatar_url":"https://avatars.githubusercontent.com/u/4930670?v=3","gravatar_id":"","url":"https://api.github.com/users/angi-","html_url":"https://github.com/angi-","followers_url":"https://api.github.com/users/angi-/followers","following_url":"https://api.github.com/users/angi-/following{/other_user}","gists_url":"https://api.github.com/users/angi-/gists{/gist_id}","starred_url":"https://api.github.com/users/angi-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angi-/subscriptions","organizations_url":"https://api.github.com/users/angi-/orgs","repos_url":"https://api.github.com/users/angi-/repos","events_url":"https://api.github.com/users/angi-/events{/privacy}","received_events_url":"https://api.github.com/users/angi-/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/component:%20typeahead","name":"component: typeahead","color":"ffffff"},{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/needs:%20rebasing","name":"needs: rebasing","color":"fbca04"},{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/needs:%20squash","name":"needs: squash","color":"c7def8"},{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/needs:%20work","name":"needs: work","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-21T13:00:10Z","updated_at":"2015-08-16T20:10:14Z","closed_at":"2015-08-16T20:10:14Z","pull_request":{"url":"https://api.github.com/repos/angular-ui/bootstrap/pulls/3211","html_url":"https://github.com/angular-ui/bootstrap/pull/3211","diff_url":"https://github.com/angular-ui/bootstrap/pull/3211.diff","patch_url":"https://github.com/angular-ui/bootstrap/pull/3211.patch"},"body":"There's an issue with typeahead: when you select an item from the list the input is autofocused. While this is desirable for some users, I clear the input value on focus leaving me with an empty input after selection. That's why I added a parameter that tells the typeahead not to autofocus after selection. This parameter is optional so it will not affect users that don't specify it.\r\n\r\nThis also adresses the issue #1903"},"comment":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/comments/131616748","html_url":"https://github.com/angular-ui/bootstrap/pull/3211#issuecomment-131616748","issue_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3211","id":131616748,"user":{"login":"wesleycho","id":1703387,"avatar_url":"https://avatars.githubusercontent.com/u/1703387?v=3","gravatar_id":"","url":"https://api.github.com/users/wesleycho","html_url":"https://github.com/wesleycho","followers_url":"https://api.github.com/users/wesleycho/followers","following_url":"https://api.github.com/users/wesleycho/following{/other_user}","gists_url":"https://api.github.com/users/wesleycho/gists{/gist_id}","starred_url":"https://api.github.com/users/wesleycho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesleycho/subscriptions","organizations_url":"https://api.github.com/users/wesleycho/orgs","repos_url":"https://api.github.com/users/wesleycho/repos","events_url":"https://api.github.com/users/wesleycho/events{/privacy}","received_events_url":"https://api.github.com/users/wesleycho/received_events","type":"User","site_admin":false},"created_at":"2015-08-16T20:10:14Z","updated_at":"2015-08-16T20:10:14Z","body":"Closing due to being superceded by #4212.\r\n\r\nI apologize that this was not able to get in, but the history was an issue in this PR."}}