mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user