Skip to content

Style recalculations will cause animate.enter and animate.leave to misbehave #63006

Closed

Description

@thePunderWoman

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

core

Is this a regression?

No

Description

If an animate.enter or animate.leave is specified, and something on the page triggers a style recalculation, this will cause element.getAnimations() to be empty. The animation API relies on getAnimations() for cancelling and knowing when the longest animation has finished. Without this information, enter classes don't get removed and leave animations don't remove the element.

Please provide a link to a minimal reproduction of the bug

No response

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 Aug 5, 2025
  2. added this to the needsTriage milestone on Aug 5, 2025
  3. added
    core: animations
    on Aug 5, 2025
  4. added 5 commits that reference this issue on Aug 5, 2025
    2738861
    9a82fc5
    7e6ca5c
    e53d841
    cc6e168
  5. angular-automatic-lock-bot commented on Sep 6, 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.

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

Metadata

Metadata

Labels

area: corecore: animations

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions