Skip to content

Commit 8271352

Browse files
crisbetojelbourn
authored andcommitted
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.
1 parent 5a055a7 commit 8271352

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/lib/tooltip/tooltip.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -598,10 +598,7 @@ export class TooltipComponent {
598598
}
599599

600600
if (toState === 'visible' || toState === 'hidden') {
601-
// Note: as of Angular 4.3, the animations module seems to fire the `start` callback before
602-
// the end if animations are disabled. Make this call async to ensure that it still fires
603-
// at the appropriate time.
604-
Promise.resolve().then(() => this._closeOnInteraction = true);
601+
this._closeOnInteraction = true;
605602
}
606603
}
607604

0 commit comments

Comments
 (0)