mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +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,
|
mode,
|
||||||
showGoBack: this.canGoBackSync(enteringView),
|
showGoBack: this.canGoBackSync(enteringView),
|
||||||
baseEl: this.el,
|
baseEl: this.el,
|
||||||
animationBuilder: this.animation || opts.animationBuilder || config.get('navAnimation'),
|
|
||||||
progressCallback,
|
progressCallback,
|
||||||
animated: this.animated && config.getBoolean('animated', true),
|
animated: this.animated && config.getBoolean('animated', true),
|
||||||
|
|
||||||
enteringEl,
|
enteringEl,
|
||||||
leavingEl,
|
leavingEl,
|
||||||
|
|
||||||
...opts
|
...opts,
|
||||||
|
|
||||||
|
animationBuilder: opts.animationBuilder || this.animation || config.get('navAnimation')
|
||||||
};
|
};
|
||||||
const { hasCompleted } = await transition(animationOpts);
|
const { hasCompleted } = await transition(animationOpts);
|
||||||
return this.transitionFinish(hasCompleted, enteringView, leavingView, opts);
|
return this.transitionFinish(hasCompleted, enteringView, leavingView, opts);
|
||||||
|
|||||||
@ -188,7 +188,7 @@ export class RouterOutlet implements ComponentInterface, NavOutlet {
|
|||||||
|
|
||||||
const { el, mode } = this;
|
const { el, mode } = this;
|
||||||
const animated = this.animated && config.getBoolean('animated', true);
|
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({
|
await transition({
|
||||||
mode,
|
mode,
|
||||||
|
|||||||
Reference in New Issue
Block a user