mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
fix(overlay): ensure lifecycles fire properly (#19579)
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user