Skip to content

bug(animations) nested animations don't work properly when switching between states #25194

Closed as not planned

Description

@Ploppy3

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
[ ] Other... Please describe:

Current behavior

Nested animations don't work properly when switching between states

Expected behavior

Nested animations should always work.

Minimal reproduction of the problem with instructions

Working (without swithing between states ; with *ngIf):
https://stackblitz.com/edit/angular-sev2pq?file=src%2Fapp%2Fapp.component.html

Not working (switching between states):
https://stackblitz.com/edit/angular-skyqmo?file=src%2Fapp%2Fapp.component.html

What is the motivation / use case for changing the behavior?

Environment


Angular version: X.Y.Z


Browser:
- [x] Chrome (desktop) version 68
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX

Others:

Activity

  1. changed the title [-]bug(aniamtions) nested animations don't work properly when switching between states[/-] [+]bug(animations) nested animations don't work properly when switching between states[/+] on Jul 30, 2018
  2. added
    area: animations
    on Jul 31, 2018
  3. added this to the needsTriage milestone on Jul 31, 2018
  4. modified the milestones: needsTriage, Backlog on Sep 27, 2018
  5. added
    P3
    and removed on Oct 1, 2020
  6. dario-piotrowicz commented on Dec 16, 2021

    @dario-piotrowicz
    Contributor

    This seems to be an issue with the height * not being correctly recognised, I've checked and I think this bug is going to be fixed by #44515 (I've checked locally and the PR does seem to fix it)

    I'll leave another comment here after/if the PR gets merged and after having checked if the PR's changes do indeed fix this 🙂👍

  7. Ploppy3 commented on Jan 16, 2022

    @Ploppy3
    Author
  8. thePunderWoman commented on Aug 21, 2025

    @thePunderWoman
    Contributor

    This issue was closed as obsolete due to the introduction of the new animate.enter and animate.leave APIs. The @angular/animations package is now deprecated and will be removed in Angular v23. We hope you give the new APIs a try.

  9. angular-automatic-lock-bot commented on Sep 21, 2025

    @angular-automatic-lock-bot

    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.

  10. locked and limited conversation to collaborators on Sep 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3area: animationsfreq2: mediumtype: bug/fix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions