Skip to content

Renderer crashes using new Angular 20.2+ (animate.leave) hook #64818

@bukharin

Description

@bukharin

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

core

Is this a regression?

No

Description

An renderer error Failed to execute 'insertBefore' occurs when using (animate.leave) delayed hook with re-ordering list items.

Please see fiddle to reproduce.

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/angular-fiddle-gqwykbhz?file=src%2Fapp%2Ftest.directive.ts

Please provide the exception or error you saw

Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.

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

Any angular 20.2+ 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