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.
This commit is contained in:
Kristiyan Kostadinov
2018-01-26 16:31:12 +01:00
committed by Jeremy Elbourn
parent 5a055a70d4
commit 8271352e9b
+1 -4
View File
@@ -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;
}
}