-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed
Labels
area: animationsarea: coreIssues related to the framework runtimeIssues related to the framework runtimestate: has PR
Milestone
Description
Which @angular/* package(s) are the source of the bug?
animations, platform-browser
Is this a regression?
No
Description
If you enable REMOVE_STYLES_ON_COMPONENT_DESTROY, it does not wait for :leave animations to finish, causing components to lose styles before they are gone from DOM.
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/stackblitz-starters-ktwdzy
Toggle a simple component with fade animation on/off using *ngComponentOutlet on the reproduction link, background disappears before component is gone.
Please provide the environment you discovered this bug in (run ng version)
Angular 16.1.1
Anything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: animationsarea: coreIssues related to the framework runtimeIssues related to the framework runtimestate: has PR