{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material/issues/11165","repository_url":"https://api.github.com/repos/angular/material","labels_url":"https://api.github.com/repos/angular/material/issues/11165/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/11165/comments","events_url":"https://api.github.com/repos/angular/material/issues/11165/events","html_url":"https://github.com/angular/material/pull/11165","id":304788444,"number":11165,"title":"feat(sidenav): add disable click and escape event","user":{"login":"FjVillar","id":12049849,"avatar_url":"https://avatars1.githubusercontent.com/u/12049849?v=4","gravatar_id":"","url":"https://api.github.com/users/FjVillar","html_url":"https://github.com/FjVillar","followers_url":"https://api.github.com/users/FjVillar/followers","following_url":"https://api.github.com/users/FjVillar/following{/other_user}","gists_url":"https://api.github.com/users/FjVillar/gists{/gist_id}","starred_url":"https://api.github.com/users/FjVillar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FjVillar/subscriptions","organizations_url":"https://api.github.com/users/FjVillar/orgs","repos_url":"https://api.github.com/users/FjVillar/repos","events_url":"https://api.github.com/users/FjVillar/events{/privacy}","received_events_url":"https://api.github.com/users/FjVillar/received_events","type":"User","site_admin":false},"labels":[{"id":478730856,"url":"https://api.github.com/repos/angular/material/labels/cla:%20no","name":"cla: no","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-13T14:30:41Z","updated_at":"2018-03-13T15:28:21Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/angular/material/pulls/11165","html_url":"https://github.com/angular/material/pull/11165","diff_url":"https://github.com/angular/material/pull/11165.diff","patch_url":"https://github.com/angular/material/pull/11165.patch"},"body":"Add a property to disable the click and Escape button actions to prevent the user\r\nfrom closing the sidenav but still showing the backdrop.\r\n\r\n## PR Checklist\r\nPlease check that your PR fulfills the following requirements:\r\n\r\n- [x] The commit message follows [our guidelines](https://github.com/angular/material/blob/master/.github/CONTRIBUTING.md#-commit-message-format)\r\n- [x] Tests for the changes have been added (for bug fixes / features)\r\n- [x] Docs have been added / updated (for bug fixes / features)\r\n\r\n\r\n## PR Type\r\nWhat kind of change does this PR introduce?\r\n\r\n<!-- Please check the one that applies to this PR using \"x\". -->\r\n```\r\n[ ] Bugfix\r\n[x] Feature\r\n[ ] Code style update (formatting, local variables)\r\n[ ] Refactoring (no functional changes, no api changes)\r\n[ ] Build related changes\r\n[ ] CI related changes\r\n[ ] Documentation content changes\r\n[ ] Infrastructure changes\r\n[ ] Other... Please describe:\r\n```\r\n\r\n## What is the current behavior?\r\n<!-- Please describe the current behavior that you are modifying and link to a relevant issue. -->\r\n\r\nIssue Number: \r\n#4699\r\n\r\n## What is the new behavior?\r\n\r\nNow it is possible to add a new attribute called `md-disable-click-escape-events` to prevent the sidenav from closing when clicking on the backdrop or pressing `ESC`. If you add it to a md-sidenav it will still show the backdrop but the user won't be able to close it with the previous named events and will force the user to close it by some button or action you've created on your sidenav.\r\n\r\n## Does this PR introduce a breaking change?\r\n```\r\n\r\n[ ] Yes\r\n[x] No\r\n```\r\n\r\n<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->\r\n<!-- Note that breaking changes are highly unlikely to get merged to master unless the validation is clear and the use case is critical. -->\r\n\r\n## Other information"},"comment":{"url":"https://api.github.com/repos/angular/material/issues/comments/372706090","html_url":"https://github.com/angular/material/pull/11165#issuecomment-372706090","issue_url":"https://api.github.com/repos/angular/material/issues/11165","id":372706090,"user":{"login":"FjVillar","id":12049849,"avatar_url":"https://avatars1.githubusercontent.com/u/12049849?v=4","gravatar_id":"","url":"https://api.github.com/users/FjVillar","html_url":"https://github.com/FjVillar","followers_url":"https://api.github.com/users/FjVillar/followers","following_url":"https://api.github.com/users/FjVillar/following{/other_user}","gists_url":"https://api.github.com/users/FjVillar/gists{/gist_id}","starred_url":"https://api.github.com/users/FjVillar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FjVillar/subscriptions","organizations_url":"https://api.github.com/users/FjVillar/orgs","repos_url":"https://api.github.com/users/FjVillar/repos","events_url":"https://api.github.com/users/FjVillar/events{/privacy}","received_events_url":"https://api.github.com/users/FjVillar/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T15:28:21Z","updated_at":"2018-03-13T15:28:21Z","author_association":"NONE","body":"I have tried to fix it, lets see if it works..."}}
{"actor":{"display_login":"FjVillar"}}