Skip to content

Instantly share code, notes, and snippets.

@adrianfaciu
Created October 21, 2018 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrianfaciu/c0bbe0ae1c1d68cb88eee3f52122bb41 to your computer and use it in GitHub Desktop.
Save adrianfaciu/c0bbe0ae1c1d68cb88eee3f52122bb41 to your computer and use it in GitHub Desktop.
onFadeFinished(event: AnimationEvent) {
const { toState } = event;
const isFadeOut = (toState as ToastAnimationState) === 'closing';
const itFinished = this.animationState === 'closing';
if (isFadeOut && itFinished) {
this.close();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment