{"action":"opened","issue":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/20788","repository_url":"https://api.github.com/repos/twbs/bootstrap","labels_url":"https://api.github.com/repos/twbs/bootstrap/issues/20788/labels{/name}","comments_url":"https://api.github.com/repos/twbs/bootstrap/issues/20788/comments","events_url":"https://api.github.com/repos/twbs/bootstrap/issues/20788/events","html_url":"https://github.com/twbs/bootstrap/issues/20788","id":179249666,"number":20788,"title":"On close, modals should return focus to launching element","user":{"login":"maruthikumars","id":19667503,"avatar_url":"https://avatars.githubusercontent.com/u/19667503?v=3","gravatar_id":"","url":"https://api.github.com/users/maruthikumars","html_url":"https://github.com/maruthikumars","followers_url":"https://api.github.com/users/maruthikumars/followers","following_url":"https://api.github.com/users/maruthikumars/following{/other_user}","gists_url":"https://api.github.com/users/maruthikumars/gists{/gist_id}","starred_url":"https://api.github.com/users/maruthikumars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maruthikumars/subscriptions","organizations_url":"https://api.github.com/users/maruthikumars/orgs","repos_url":"https://api.github.com/users/maruthikumars/repos","events_url":"https://api.github.com/users/maruthikumars/events{/privacy}","received_events_url":"https://api.github.com/users/maruthikumars/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-26T14:47:30Z","updated_at":"2016-09-26T14:47:30Z","closed_at":null,"body":"I've a page with Two buttons \"Goto\" and \"Previous\".\r\n\r\nWhen I click \"previous\" button a modal will open. This modal will have some text followed by two buttons\r\nYes and No.\r\n\r\nwhen we click\"No\", the focus should return to \"Previous\".\r\n\r\n\r\n<button class=\"btn btn-primary btn-lg\" data-toggle=\"modal\" data-target=\"#myModal\">\r\n\r\n<div class=\"modal-footer\">\r\n        <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Yes</button>\r\n        <button type=\"button\" class=\"btn btn-primary\">No</button>\r\n </div>\r\n\r\ndo I need to add anything else here. to use bootstrap api? \r\n\r\nNote: when I click Previous button it is using bootstrap api. When I click on No in modal I couldn't able to debug the bootstrap code."}}
{"actor":{"display_login":"maruthikumars"}}