From 8271352e9be540b8b149c7a7cb69b0d32ec7812b Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Fri, 26 Jan 2018 16:31:12 +0100 Subject: [PATCH] chore(tooltip): revert workaround for older Angular versions (#9362) Reverts a workaround for a bug in Angular 4.x where the animation events would fire out of sequence if animations are disabled. The underlying issue appears to be fixed in Angular 5. --- src/lib/tooltip/tooltip.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/tooltip/tooltip.ts b/src/lib/tooltip/tooltip.ts index 83b68b278c6..6fb19295033 100644 --- a/src/lib/tooltip/tooltip.ts +++ b/src/lib/tooltip/tooltip.ts @@ -598,10 +598,7 @@ export class TooltipComponent { } if (toState === 'visible' || toState === 'hidden') { - // Note: as of Angular 4.3, the animations module seems to fire the `start` callback before - // the end if animations are disabled. Make this call async to ensure that it still fires - // at the appropriate time. - Promise.resolve().then(() => this._closeOnInteraction = true); + this._closeOnInteraction = true; } }