Skip to content

Angular does not remove component from the DOM with (animate.leave) hook after list reordering since 21.2 #67728

@bukharin

Description

@bukharin

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

core

Is this a regression?

Yes

Description

Please see reproduction link

If element in the list with (animate.leave) hook was reordered - Angular does not remove them from the DOM

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/angular-fiddle-gqwykbhz-zvnrytfg

Please provide the exception or error you saw

No exception

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

Angular/core 21.2.4

Anything else?

Does not reproduces on 21.1 version

Metadata

Metadata

Labels

area: coreIssues related to the framework runtimecore: animationsIssues related to `animate.enter` and `animate.leave`gemini-triagedLabel noting that an issue has been triaged by geministate: has PR

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions