mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Jeremy Elbourn
parent
5a055a70d4
commit
8271352e9b
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user