{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/dialog/issues/1","repository_url":"https://api.github.com/repos/aurelia/dialog","labels_url":"https://api.github.com/repos/aurelia/dialog/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/dialog/issues/1/comments","events_url":"https://api.github.com/repos/aurelia/dialog/issues/1/events","html_url":"https://github.com/aurelia/dialog/issues/1","id":93620503,"number":1,"title":"focus considerations","user":{"login":"jdanyow","id":1306747,"avatar_url":"https://avatars.githubusercontent.com/u/1306747?v=3","gravatar_id":"","url":"https://api.github.com/users/jdanyow","html_url":"https://github.com/jdanyow","followers_url":"https://api.github.com/users/jdanyow/followers","following_url":"https://api.github.com/users/jdanyow/following{/other_user}","gists_url":"https://api.github.com/users/jdanyow/gists{/gist_id}","starred_url":"https://api.github.com/users/jdanyow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdanyow/subscriptions","organizations_url":"https://api.github.com/users/jdanyow/orgs","repos_url":"https://api.github.com/users/jdanyow/repos","events_url":"https://api.github.com/users/jdanyow/events{/privacy}","received_events_url":"https://api.github.com/users/jdanyow/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aurelia/dialog/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-07-07T20:25:58Z","updated_at":"2016-06-20T18:09:41Z","closed_at":null,"body":"(moved from https://github.com/aurelia/framework/issues/142)\r\n\r\n1. [`.autofocus`]( https://github.com/BlueSpire/Durandal/blob/master/src/plugins/js/dialog.js#L502) / [`autofocus`](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Forms_in_HTML#The_autofocus_attribute): \r\n2. [preventing users from tabbing off modals onto the underlying page](https://github.com/angular-ui/bootstrap/issues/738#issuecomment-24702467) \r\n3. Ensuring the focus is restored to the previously focused element when the modal is closed.\r\n4. Nested modals: Are all the scenarios above handled when multiple modals are opened?\r\n"},"comment":{"url":"https://api.github.com/repos/aurelia/dialog/issues/comments/227222422","html_url":"https://github.com/aurelia/dialog/issues/1#issuecomment-227222422","issue_url":"https://api.github.com/repos/aurelia/dialog/issues/1","id":227222422,"user":{"login":"jdanyow","id":1306747,"avatar_url":"https://avatars.githubusercontent.com/u/1306747?v=3","gravatar_id":"","url":"https://api.github.com/users/jdanyow","html_url":"https://github.com/jdanyow","followers_url":"https://api.github.com/users/jdanyow/followers","following_url":"https://api.github.com/users/jdanyow/following{/other_user}","gists_url":"https://api.github.com/users/jdanyow/gists{/gist_id}","starred_url":"https://api.github.com/users/jdanyow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdanyow/subscriptions","organizations_url":"https://api.github.com/users/jdanyow/orgs","repos_url":"https://api.github.com/users/jdanyow/repos","events_url":"https://api.github.com/users/jdanyow/events{/privacy}","received_events_url":"https://api.github.com/users/jdanyow/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T18:09:41Z","updated_at":"2016-06-20T18:09:41Z","body":"I liked how durandal did it:  https://github.com/BlueSpire/Durandal/blob/master/src/plugins/js/dialog.js#L502\r\n\r\nAnd in past projects had added logic to execute the same code on navigation complete events.  This resulted in a convention that could be used throughout the app, avoiding components \"fighting\" for focus.\r\n\r\nOn one hand I agree we could prescribe an approach with gists, etc, on the other hand it would be nice if (everyone agreed the durandal way is the best) if we specified a convention, updated the router and dialog plugins to follow that convention, and people could opt in by adding `.autofocus` or `autofocus` (depending on the convention).\r\n"}}
{"actor":{"display_login":"jdanyow"}}