You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
mdTooltip: incorrectly reappears when sidenav closes #7869
As noted in #3525, when closing, an mdSidenav intentionally refocuses whatever element triggered it to open for accessibility reasons.
However, 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:
That'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.
This happens in Material v1.1.0-rc2 and v1.0.7 with Angular 1.5.3.
I've reproduced this in Chrome for Mac and IE 11 for Windows.
This happens with or without md-autohide on the md-tooltip.
I would suggest one of the following:
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.)
Provide an attribute on md-sidenav to opt-out of the autofocus-trigger-elment-on-close behavior.
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.
@FreakTheMighty As you referenced in #7965, I took a look at your issue and this seems to be something different. Please open a new issue, so we can track it / and investigate.
Activity
devversion commentedon Apr 24, 2016
Duplicate of #5563 - Fix is already pending #7965
FreakTheMighty commentedon May 11, 2016
I've found a related behavior and want to make sure its duplicate of this ticket. It can be reproduced on the Speed Dial Demo here: https://material.angularjs.org/latest/demo/fabSpeedDial
On the second demo showing the use of tooltips
Notice that the tooltip disappears then briefly reappears.
Even
md-autohide=falseis not respected because the element isn't currently in focus.material/src/components/tooltip/tooltip.js
Line 197 in afeb736
I'm not sure if that's the correct behavior, but it appears that the button doesn't take focus when tapped on a mobile device.
material/src/components/button/button.js
Line 150 in afeb736
devversion commentedon May 24, 2016
@FreakTheMighty As you referenced in #7965, I took a look at your issue and this seems to be something different. Please open a new issue, so we can track it / and investigate.