components icon indicating copy to clipboard operation
components copied to clipboard

fix(material/tooltip): avoid problem when triggers hide animation for not visible tooltip

Open volvachev opened this issue 3 years ago • 12 comments
trafficstars

This PR fixes the problem when mat-tooltip-hide triggers the animation of tooltip that has not been shown yet.

Fixes #24614

Caretaker note: Integration test is failing because selenium wants to click on a select item but instead is clicking on the tooltip

volvachev avatar Mar 23 '22 20:03 volvachev

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

For more information, open the CLA check for this pull request.

google-cla[bot] avatar Mar 23 '22 20:03 google-cla[bot]

A couple of notes:

  1. I think that the correct approach would be to clear the tooltip opening timeout if the pointer is moved away.
  2. I noticed this when I was reworking the tooltip in a5ab8e9, but I ended up keeping the old behavior, because it caused a lot of screenshot failures internally.

The problem is that during the hide action mat-tooltip-hide class is added which has @keyframes -> opacity: 1; animation. As a result hint is shown and disappears in the end of animation, but it hasn't be shown at all. In case when tooltip shouldn't be shown we need to avoid such animation.

After mouseleave event open timeout wipes.

volvachev avatar Mar 24 '22 08:03 volvachev

Any update on this?

rajibhasan11 avatar Apr 09 '22 07:04 rajibhasan11

Hello @volvachev, we're running this PR through Google's internal presubmit. Could you please rebase this branch with master?

zarend avatar Apr 15 '22 16:04 zarend

Hello @volvachev, we're running this PR through Google's internal presubmit. Could you please rebase this branch with master?

Hi, I did it.

volvachev avatar Apr 15 '22 16:04 volvachev

tyty, the most recent presubmit process from earlier this week had less than ten failures. I'm kicking off a fresh one.

zarend avatar Apr 15 '22 18:04 zarend

tyty, the most recent presubmit process from earlier this week had less than ten failures. I'm kicking off a fresh one.

So, will my fix be included in new one?

volvachev avatar Apr 15 '22 18:04 volvachev

Any updates?

Juszczak avatar May 13 '22 11:05 Juszczak

@volvachev The presubmit process Zach was describing was for this PR. Each PR is processed independently

From the latest presubmit run, I can see that it only had a handful of failures so it (hopefully) shouldn't be too difficult to get through. Unfortunately I haven't been able to prioritize this enough to sit down and debug each failure

wagnermaciel avatar May 18 '22 14:05 wagnermaciel

Hello! It looks like there are no failed checks anymore. Is there any update on this PR?

NoMercy235 avatar Jun 21 '22 14:06 NoMercy235

Any news about this PR? The impacts of this bug are quite unpleasant for the users.

cosme-benito avatar Jun 29 '22 11:06 cosme-benito

are we there yet?

vasyop avatar Jul 11 '22 12:07 vasyop

Pretty please? 🙏

NoMercy235 avatar Aug 03 '22 13:08 NoMercy235

I'll take another look. We got this down pretty close but the internal failures are tough to debug. After rerunning internal tests tonight I'll post an update on how things are looking

wagnermaciel avatar Aug 03 '22 17:08 wagnermaciel

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.