mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 15:51:16 +08:00
fix(nav): custom animation is now used correctly (#23779)
resolves #23777
This commit is contained in:
@ -872,14 +872,15 @@ export class Nav implements NavOutlet {
|
||||
mode,
|
||||
showGoBack: this.canGoBackSync(enteringView),
|
||||
baseEl: this.el,
|
||||
animationBuilder: this.animation || opts.animationBuilder || config.get('navAnimation'),
|
||||
progressCallback,
|
||||
animated: this.animated && config.getBoolean('animated', true),
|
||||
|
||||
enteringEl,
|
||||
leavingEl,
|
||||
|
||||
...opts
|
||||
...opts,
|
||||
|
||||
animationBuilder: opts.animationBuilder || this.animation || config.get('navAnimation')
|
||||
};
|
||||
const { hasCompleted } = await transition(animationOpts);
|
||||
return this.transitionFinish(hasCompleted, enteringView, leavingView, opts);
|
||||
|
||||
@ -188,7 +188,7 @@ export class RouterOutlet implements ComponentInterface, NavOutlet {
|
||||
|
||||
const { el, mode } = this;
|
||||
const animated = this.animated && config.getBoolean('animated', true);
|
||||
const animationBuilder = this.animation || opts.animationBuilder || config.get('navAnimation');
|
||||
const animationBuilder = opts.animationBuilder || this.animation || config.get('navAnimation');
|
||||
|
||||
await transition({
|
||||
mode,
|
||||
|
||||
Reference in New Issue
Block a user