Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matTooltip triggers on focus capture since 2.0.0-beta.11 #7245

Closed
HitomiTenshi opened this issue Sep 22, 2017 · 2 comments · Fixed by #7258
Closed

matTooltip triggers on focus capture since 2.0.0-beta.11 #7245

HitomiTenshi opened this issue Sep 22, 2017 · 2 comments · Fixed by #7258
Assignees
Labels
Accessibility This issue is related to accessibility (a11y)

Comments

@HitomiTenshi
Copy link

HitomiTenshi commented Sep 22, 2017

Bug, feature request, or proposal:

Bug?

What is the expected behavior?

2.0.0-beta.10 didn't trigger tooltips on focus capture, e. g. by getting focus after closing a dialog or after closing a sidenav.

What is the current behavior?

2.0.0-beta.11 triggers tooltips on focus capture. Perhaps this is intended when using the keyboard to focus elements with tooltips, but in my case this is not intended.

Maybe provide a way to disable triggering tooltips on focus capture?

What are the steps to reproduce?

http://plnkr.co/edit/5O7j6Mt033VyDEbC05ai?p=preview

Open the sidenav, then press close. Watch the tooltip reappear.

It will stay until something else catches focus or the button gets hovered.

What is the use-case or motivation for changing an existing behavior?

I want the behavior of 2.0.0-beta.10 back.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Material 2.0.0-beta.11 and 2.0.0-beta.12
Chrome 61 / Firefox 55

@crisbeto crisbeto self-assigned this Sep 22, 2017
@crisbeto crisbeto added Accessibility This issue is related to accessibility (a11y) has pr labels Sep 22, 2017
crisbeto added a commit to crisbeto/material2 that referenced this issue Sep 22, 2017
Prevents the tooltip from opening when its trigger is focused programmatically.

Fixes angular#7245.
@Supamiu
Copy link

Supamiu commented Oct 4, 2017

Same issue when reproduced from a dialog: http://plnkr.co/edit/HBaHnOcg1SPQcEvY684f?p=preview

crisbeto added a commit to crisbeto/material2 that referenced this issue Oct 6, 2017
Prevents the tooltip from opening when its trigger is focused programmatically.

Fixes angular#7245.
andrewseguin pushed a commit that referenced this issue Oct 9, 2017
Prevents the tooltip from opening when its trigger is focused programmatically.

Fixes #7245.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Accessibility This issue is related to accessibility (a11y)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants