fix(animation): prevent animation re-run when toggling element visibility (#19115)

* clean up pause fn, rename oneTime to oneTimeCallback

* remove duration, play state, and delay from animations to prevent reruns when toggling visibility
This commit is contained in:
Liam DeBeasi
2019-08-16 10:18:06 -04:00
committed by GitHub
parent 7f39f8c357
commit 624e118b56
3 changed files with 30 additions and 18 deletions

View File

@ -420,7 +420,7 @@ export class Menu implements ComponentInterface, MenuI {
this.lastOnEnd = detail.timeStamp;
this.animation
.onFinish(() => this.afterAnimation(shouldOpen), {
oneTime: true
oneTimeCallback: true
})
.progressEnd(shouldComplete, stepValue, realDur);
}