Skip to content

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

@thePunderWoman

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

Metadata

Metadata

Labels

area: coreIssues related to the framework runtimecore: animationsIssues related to `animate.enter` and `animate.leave`

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions