Skip to content

matTooltip does not reliably disappear when closing matSelect with ESC #14278

Closed
@chadfranzen

Description

@chadfranzen

Bug, feature request, or proposal:

Bug

What is the expected behavior?

If a mat-option inside a mat-select panel has a matTooltip applied to it, and the tooltip is being shown, closing the mat-select should cause that tooltip to disappear.

What is the current behavior?

If the select panel is closed using the ESC key, and the mouse does not move during closing, the tooltip can remain onscreen until the user clicks elsewhere.

What are the steps to reproduce?

StackBlitz: https://stackblitz.com/edit/angular-1paubu

  1. Open the select panel and select one of the options
  2. Open the panel again, hover over an option so that the tooltip appears
  3. Press the ESC key to close the panel. Don't move the mouse while it is closing
  4. The tooltip should still be visible after the panel has closed. It will remain visible until you click somewhere else.

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

Angular Material 7.1.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions