Skip to content

REMOVE_STYLES_ON_COMPONENT_DESTROY breaks :leave animations #50791

Closed

Description

@waterplea

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

Activity

  1. added
    area: animations
    area: core
    on Jun 21, 2023
  2. added this to the needsTriage milestone on Jun 21, 2023
  3. pkozlowski-opensource commented on Jun 21, 2023

    @pkozlowski-opensource
    Member
  4. alan-agius4 commented on Jun 21, 2023

    @alan-agius4
    Contributor

    This will be addressed by #50677.

  5. self-assigned this
    on Jun 21, 2023
  6. alan-agius4 commented on Jun 28, 2023

    @alan-agius4
    Contributor

    Closed via #50677.

  7. angular-automatic-lock-bot commented on Jul 29, 2023

    @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.

  8. locked and limited conversation to collaborators on Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: animationsarea: corestate: has PR

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions