mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
fix(animation): enable backwards compatibility for overlay animations (#19160)
* fix backwards compat for overlays * fix overlay * Address navigation edge case
This commit is contained in:
@ -85,7 +85,8 @@ const animation = async (animationBuilder: IonicAnimationInterface | AnimationBu
|
||||
let trans: Animation | IonicAnimation;
|
||||
|
||||
try {
|
||||
trans = await import('../animation/old-animation').then(mod => mod.create(animationBuilder as AnimationBuilder, opts.baseEl, opts));
|
||||
const mod = await import('../animation/old-animation');
|
||||
trans = await mod.create(animationBuilder as AnimationBuilder, opts.baseEl, opts);
|
||||
} catch (err) {
|
||||
trans = (animationBuilder as IonicAnimationInterface)(opts.baseEl, opts);
|
||||
}
|
||||
|
Reference in New Issue
Block a user