mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
fix(loading): fix animation for loading the first time
references #5426
This commit is contained in:
@ -1098,7 +1098,9 @@ export class NavController extends Ion {
|
||||
this._trans && this._trans.destroy();
|
||||
this._trans = transAnimation;
|
||||
|
||||
if (opts.animate === false) {
|
||||
// Portal elements should always animate
|
||||
// so ignore this if it is a portal
|
||||
if (opts.animate === false && this._portal) {
|
||||
// force it to not animate the elements, just apply the "to" styles
|
||||
transAnimation.duration(0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user