{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/6295","repository_url":"https://api.github.com/repos/angular-ui/bootstrap","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/6295/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/6295/comments","events_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/6295/events","html_url":"https://github.com/angular-ui/bootstrap/pull/6295","id":184338300,"number":6295,"title":"fix(modal): focus defaults to the modal itself, not the first element","user":{"login":"ajpz","id":13667403,"avatar_url":"https://avatars.githubusercontent.com/u/13667403?v=3","gravatar_id":"","url":"https://api.github.com/users/ajpz","html_url":"https://github.com/ajpz","followers_url":"https://api.github.com/users/ajpz/followers","following_url":"https://api.github.com/users/ajpz/following{/other_user}","gists_url":"https://api.github.com/users/ajpz/gists{/gist_id}","starred_url":"https://api.github.com/users/ajpz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajpz/subscriptions","organizations_url":"https://api.github.com/users/ajpz/orgs","repos_url":"https://api.github.com/users/ajpz/repos","events_url":"https://api.github.com/users/ajpz/events{/privacy}","received_events_url":"https://api.github.com/users/ajpz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-20T20:55:23Z","updated_at":"2016-10-20T21:10:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/angular-ui/bootstrap/pulls/6295","html_url":"https://github.com/angular-ui/bootstrap/pull/6295","diff_url":"https://github.com/angular-ui/bootstrap/pull/6295.diff","patch_url":"https://github.com/angular-ui/bootstrap/pull/6295.patch"},"body":"I recently bumped version from 2.1.4 to 2.2.0. \r\n\r\nIn the updated version, modals set default focus to the [firstFocusableElement](https://github.com/angular-ui/bootstrap/compare/2.1.4...2.2.0#diff-15d409302580c93c654a382e2da68396R649). This seems like unwanted default behavior (for example, input elements may have additional focus behavior that I'd like not to trigger by default). \r\n\r\nAlso, modals [already](https://github.com/angular-ui/bootstrap/blob/master/src/modal/modal.js#L201) had a viable and acceptable default state -- focus would be applied to the modal itself when `autofocus` wasn't explicitly set on any element. \r\n\r\nThis change is a quick example of the minimal changes required to revert to simpler, less opinionated, default behavior. "},"comment":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/comments/255229300","html_url":"https://github.com/angular-ui/bootstrap/pull/6295#issuecomment-255229300","issue_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/6295","id":255229300,"user":{"login":"Jaco-Pretorius","id":1202404,"avatar_url":"https://avatars.githubusercontent.com/u/1202404?v=3","gravatar_id":"","url":"https://api.github.com/users/Jaco-Pretorius","html_url":"https://github.com/Jaco-Pretorius","followers_url":"https://api.github.com/users/Jaco-Pretorius/followers","following_url":"https://api.github.com/users/Jaco-Pretorius/following{/other_user}","gists_url":"https://api.github.com/users/Jaco-Pretorius/gists{/gist_id}","starred_url":"https://api.github.com/users/Jaco-Pretorius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jaco-Pretorius/subscriptions","organizations_url":"https://api.github.com/users/Jaco-Pretorius/orgs","repos_url":"https://api.github.com/users/Jaco-Pretorius/repos","events_url":"https://api.github.com/users/Jaco-Pretorius/events{/privacy}","received_events_url":"https://api.github.com/users/Jaco-Pretorius/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T21:10:27Z","updated_at":"2016-10-20T21:10:27Z","body":"👍  "}}
{"actor":{"display_login":"Jaco-Pretorius"}}