fix(overlay): ensure lifecycles fire properly (#19579)

This commit is contained in:
Liam DeBeasi
2019-10-08 10:41:52 -04:00
committed by GitHub
parent 02c1724978
commit a7b964279b
2 changed files with 13 additions and 1 deletions

View File

@ -221,7 +221,7 @@ const overlayAnimation = async (
/**
* TODO: Remove AnimationBuilder
*/
const hasCompleted = (typeof animationResult as any === 'boolean') ? animationResult : (animation as any).hasCompleted;
const hasCompleted = (typeof animationResult as any === 'undefined') ? true : (animation as any).hasCompleted;
if (isAnimationBuilder) {
animation.destroy();
}