{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/material/issues/7869","repository_url":"https://api.github.com/repos/angular/material","labels_url":"https://api.github.com/repos/angular/material/issues/7869/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/7869/comments","events_url":"https://api.github.com/repos/angular/material/issues/7869/events","html_url":"https://github.com/angular/material/issues/7869","id":145765435,"number":7869,"title":"mdTooltip: incorrectly reappears when sidenav closes","user":{"login":"sirbarrence","id":816158,"avatar_url":"https://avatars.githubusercontent.com/u/816158?v=3","gravatar_id":"","url":"https://api.github.com/users/sirbarrence","html_url":"https://github.com/sirbarrence","followers_url":"https://api.github.com/users/sirbarrence/followers","following_url":"https://api.github.com/users/sirbarrence/following{/other_user}","gists_url":"https://api.github.com/users/sirbarrence/gists{/gist_id}","starred_url":"https://api.github.com/users/sirbarrence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirbarrence/subscriptions","organizations_url":"https://api.github.com/users/sirbarrence/orgs","repos_url":"https://api.github.com/users/sirbarrence/repos","events_url":"https://api.github.com/users/sirbarrence/events{/privacy}","received_events_url":"https://api.github.com/users/sirbarrence/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/material/labels/type:%20bug","name":"type: bug","color":"000000"}],"state":"closed","locked":false,"assignee":{"login":"DevVersion","id":4987015,"avatar_url":"https://avatars.githubusercontent.com/u/4987015?v=3","gravatar_id":"","url":"https://api.github.com/users/DevVersion","html_url":"https://github.com/DevVersion","followers_url":"https://api.github.com/users/DevVersion/followers","following_url":"https://api.github.com/users/DevVersion/following{/other_user}","gists_url":"https://api.github.com/users/DevVersion/gists{/gist_id}","starred_url":"https://api.github.com/users/DevVersion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevVersion/subscriptions","organizations_url":"https://api.github.com/users/DevVersion/orgs","repos_url":"https://api.github.com/users/DevVersion/repos","events_url":"https://api.github.com/users/DevVersion/events{/privacy}","received_events_url":"https://api.github.com/users/DevVersion/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/angular/material/milestones/11","html_url":"https://github.com/angular/material/milestones/-%20Backlog","labels_url":"https://api.github.com/repos/angular/material/milestones/11/labels","id":865967,"number":11,"title":"- Backlog","description":"Grouping for issues that have been reviewed and require further information before assignment to milestone is possible.","creator":{"login":"ThomasBurleson","id":210413,"avatar_url":"https://avatars.githubusercontent.com/u/210413?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasBurleson","html_url":"https://github.com/ThomasBurleson","followers_url":"https://api.github.com/users/ThomasBurleson/followers","following_url":"https://api.github.com/users/ThomasBurleson/following{/other_user}","gists_url":"https://api.github.com/users/ThomasBurleson/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasBurleson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasBurleson/subscriptions","organizations_url":"https://api.github.com/users/ThomasBurleson/orgs","repos_url":"https://api.github.com/users/ThomasBurleson/repos","events_url":"https://api.github.com/users/ThomasBurleson/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasBurleson/received_events","type":"User","site_admin":false},"open_issues":421,"closed_issues":525,"state":"open","created_at":"2014-11-14T00:54:02Z","updated_at":"2016-04-24T08:26:50Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-04-04T18:23:52Z","updated_at":"2016-04-24T08:26:50Z","closed_at":"2016-04-24T08:26:50Z","body":"As noted in #3525, when closing, an mdSidenav intentionally refocuses whatever element triggered it to open for accessibility reasons. \r\n\r\nHowever, if there is an mdTooltip on the triggering element, this programmatic refocus of that element causes the tooltip to reappear. This doesn't seem like expected behavior for mdTooltip. Here it is in action: \r\n\r\n![output](https://cloud.githubusercontent.com/assets/816158/14258126/f93f50b2-fa6e-11e5-8090-549c89dbb300.gif)\r\n\r\nThat's a click on the chat bubble button, then a click outside the sidenav to close it, unexpected tooltip reappears, then another click to make the unexpected tooltip disappear.\r\n\r\nThis happens in Material v1.1.0-rc2 and v1.0.7 with Angular 1.5.3.\r\nI've reproduced this in Chrome for Mac and IE 11 for Windows.\r\n\r\nThis happens with or without `md-autohide` on the `md-tooltip`.\r\n\r\nI would suggest one of the following:\r\n\r\n- Provide an attribute on `md-tooltip` to opt-out of focus events triggering the tooltip to appear. (Is `md-autohide` supposed to do this? It's not entirely clear from the docs. But it does not solve the problem currently.)\r\n- Provide an attribute on `md-sidenav` to opt-out of the autofocus-trigger-elment-on-close behavior.\r\n- Change `md-tooltip` so that it magically knows that programmatically-triggered focus events should not cause it to appear. No idea how you'd accomplish that."}}