Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- onFadeFinished(event: AnimationEvent) {
- const { toState } = event;
- const isFadeOut = (toState as ToastAnimationState) === 'closing';
- const itFinished = this.animationState === 'closing';
- if (isFadeOut && itFinished) {
- this.close();
- }
- }
Add Comment
Please, Sign In to add comment