You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
leave-animation not triggered when injecting ViewContainerRef into component #48667
Which @angular/* package(s) are the source of the bug?
animations
Is this a regression?
No
Description
leave-animation not triggered when injecting ViewContainerRef into component. When commenting out the injection in the constructor, the leave-animation works as expected.
Tested it in Angular 15.04 and Angular 9.1.13. Both don't work.
Please provide a link to a minimal reproduction of the bug
Activity
JeanMeche commentedon Jan 9, 2023
There was already an attemp to fix something like that in #28162
I've got another repro case.
From what I get, this is because
isHostElementis false here :angular/packages/animations/browser/src/render/transition_animation_engine.ts
Lines 756 to 761 in 9fc950d
the false being set here (the
LNodeis aLcontainer):angular/packages/core/src/render3/node_manipulation.ts
Lines 63 to 75 in 9fc950d
fix(animations): Trigger leave animation when ViewContainerRef is inj…
angular-automatic-lock-bot commentedon Jun 25, 2023
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
fix(animations): Trigger leave animation when ViewContainerRef is inj…
fix(animations): Trigger leave animation when ViewContainerRef is inj…