Guest User

Untitled

a guest
Oct 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. onFadeFinished(event: AnimationEvent) {
  2. const { toState } = event;
  3. const isFadeOut = (toState as ToastAnimationState) === 'closing';
  4. const itFinished = this.animationState === 'closing';
  5.  
  6. if (isFadeOut && itFinished) {
  7. this.close();
  8. }
  9. }
Add Comment
Please, Sign In to add comment