Skip to content

Overlay backdrop animation not triggered when detaching #8570

Closed

Description

@agent306

Bug, feature request, or proposal:

[x] bug report

What is the expected behavior?

Transition animations (vanilla css / Angular) triggered for when Overlay backdrop leaves the DOM

What is the current behavior?

Both CSS and angular animations are completely ignored when detaching a view from the overlay

What are the steps to reproduce?

    // Returns an OverlayRef (which is a PortalHost)
    const overlayRef = overlay.create();

    // Create ComponentPortal that can be attached to a PortalHost
    const overlayChildPortal = new ComponentPortal(OverlayChildComponent);

    // Attach ComponentPortal to PortalHost
    overlayRef.attach(overlayChildPortal);

    ...

    overlayRef.detach(); /* <- No animation triggers whatsoever */

    /* I've tried this as well */
    overlayRef.dispose(); /* <- No luck... */

What is the use-case or motivation for changing an existing behavior?

Uneasy on the eyes when removing overlays

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 5.0.0,
Angular CDK 5.0.0-rc-0
Typescript 2.5.0
Ubuntu 16.04
Google Chrome

Activity

  1. crisbeto commented on Nov 21, 2017

    @crisbeto
    Member

    Will be fixed by #6627 (comment).

  2. angular-automatic-lock-bot commented on Sep 7, 2019

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

  3. locked and limited conversation to collaborators on Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions