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
BUG: animate.leave doesn't work correctly with transition delay #64209
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: coreIssues related to the framework runtimecore: animationsIssues related to `animate.enter` and `animate.leave`state: has PR
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
No
Description
When using a composite animation with animate.leave, the shortest animation is performed, after which the element is removed from the tree. Therefore, the remaining transitions/animations are not executed, and the animation does not perform as expected.
In the example above, clicking the "click me" button should trigger the opening animation (animate.enter) without any issues. However, when using animate.leave, we'll see that only the first transitions are executed (without a delay), after which the block abruptly disappears.
Please provide a link to a minimal reproduction of the bug
I can confirm this behavior. It looks like the code we have in place to ensure that host binding works properly results in the leave animation promise to be resolved early. There's likely a better solution here. So we'll investigate.
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: coreIssues related to the framework runtimecore: animationsIssues related to `animate.enter` and `animate.leave`state: has PR
Activity
thePunderWoman commentedon Oct 2, 2025
I can confirm this behavior. It looks like the code we have in place to ensure that host binding works properly results in the leave animation promise to be resolved early. There's likely a better solution here. So we'll investigate.
fix(core): prevent early exit from leave animations when multiple tra…
fix(core): prevent early exit from leave animations when multiple tra…
fix(core): prevent early exit from leave animations when multiple tra…
fix(core): prevent early exit from leave animations when multiple tra…
thePunderWoman commentedon Oct 3, 2025
@froz-ilya We have a PR to fix this, which should land on Monday. This fix should be included in next Wednesday's patch release.
fix(core): prevent early exit from leave animations when multiple tra…
fix(core): prevent early exit from leave animations when multiple tra…
fix(core): prevent early exit from leave animations when multiple tra…
fix(core): prevent early exit from leave animations when multiple tra…
fix(core): prevent early exit from leave animations when multiple tra…
angular-automatic-lock-bot commentedon Nov 6, 2025
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.