-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Description
Bug, feature request, or proposal:
When putting mat-tooltip
on a <button mat-button
or <a mat-button
(or mat-icon-button
), and clicking the button, the tooltip will disappear for a few milliseconds.
This does not happen always. But it happens (nearly) always when hovering an clicking the button for the first time. All (?!) subsequent clicks don't have this issue.
What is the expected behavior?
Consistency. Always flicker or (what I would prefer): Never flicker.
What is the current behavior?
It's sometimes flickering.
What are the steps to reproduce?
Providing a StackBlitz reproduction is the best way to share your issue.
StackBlitz starter: https://goo.gl/wwnhMV
https://stackblitz.com/edit/angular-material2-issue-jqgyyp?file=app/app.component.html
The last table column contains 2 mat-button
s (one with <button
and one with <a
), each with a mat-tooltip
.
Hover it, click it, watch the tooltip.
What is the use-case or motivation for changing an existing behavior?
Consistency, better UX.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 6.0.0-rc.1
Angular Material 6.0.0-rc.0
Angular CLI 6.0.0-rc.1
Chrome 65
Is there anything else we should know?
nope