diff --git a/core/src/components/animation-controller/animator.tsx b/core/src/components/animation-controller/animator.tsx index 5386397d87..0d1c0bf1af 100644 --- a/core/src/components/animation-controller/animator.tsx +++ b/core/src/components/animation-controller/animator.tsx @@ -1152,6 +1152,9 @@ export class Animator { * NO RECURSION */ _didFinish(hasCompleted: boolean) { + if (!this.isPlaying) { + return; + } this.isPlaying = false; this.hasCompleted = hasCompleted; @@ -1189,6 +1192,7 @@ export class Animator { * Recursively destroy this animation and all child animations. */ destroy() { + this._didFinish(false); this._destroyed = true; const children = this._childAnimations; diff --git a/core/src/components/modal/test/basic/index.html b/core/src/components/modal/test/basic/index.html index 801fef7866..7526493f2f 100644 --- a/core/src/components/modal/test/basic/index.html +++ b/core/src/components/modal/test/basic/index.html @@ -22,6 +22,12 @@
+
+