Skip to content

Animation enter fails to remove after animation completes #62923

Closed

Description

@thePunderWoman

Which @angular/* package(s) are the source of the bug?

core

Is this a regression?

No

Description

In some patterns common in Angular components, there appear to be timing issues with animate.enter where the class will be present, the animation will play and be on the style sheet, but element.getAnimations() shows an empty array. This prevents us from knowing when to safely remove the class.

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/stackblitz-starters-sktafpbz?file=angular.json

Please provide the exception or error you saw


Please provide the environment you discovered this bug in (run ng version)


Anything else?

No response

Activity

  1. added
    area: core
    on Jul 31, 2025
  2. added this to the needsTriage milestone on Jul 31, 2025
  3. changed the title [-]Animation enter and leave lack host context for host bindings[/-] [+]Animation enter fails to remove after animation completes[/+] on Jul 31, 2025
  4. added a commit that references this issue on Jul 31, 2025
    d6554d0
  5. added a commit that references this issue on Aug 1, 2025
    455b147
  6. angular-automatic-lock-bot commented on Sep 1, 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.

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

Metadata

Metadata

Labels

area: corestate: has PR

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions