-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[Bug] OverlayRef on detach will strip panel class before an animation completes #13189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Comments
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Sep 19, 2018
Currently we remove the `panelClass` as soon as `detach` is called, however the pane may still be animating. These changes wait for the panel to be done animating and to be removed from the DOM, before removing the class. Fixes angular#13189.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Sep 19, 2018
Currently we remove the `panelClass` as soon as `detach` is called, however the pane may still be animating. These changes wait for the panel to be done animating and to be removed from the DOM, before removing the class. Fixes angular#13189.
mmalerba
pushed a commit
that referenced
this issue
Sep 20, 2018
Currently we remove the `panelClass` as soon as `detach` is called, however the pane may still be animating. These changes wait for the panel to be done animating and to be removed from the DOM, before removing the class. Fixes #13189.
Thanks team! Appreciate the support! 😎 |
roboshoes
pushed a commit
to roboshoes/material2
that referenced
this issue
Oct 23, 2018
…gular#13199) Currently we remove the `panelClass` as soon as `detach` is called, however the pane may still be animating. These changes wait for the panel to be done animating and to be removed from the DOM, before removing the class. Fixes angular#13189.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Uh oh!
There was an error while loading. Please reload this page.
Bug
Panel Class is stripped before animation completes if panel class is animated on
detach()
. After running a git bisect, I found this was introduced in commit 79bacf2.https://github.com/angular/material2/blob/19ce1a164e5f861d7744d2f55e1e1b0d29ba32b5/src/cdk/overlay/overlay-ref.ts#L177-L179
This was previously working perfectly in previous versions of @angular/cdk
See /pull/12142
What is the expected behavior?
The class should only be removed after the animation has completed, observer:

What is the current behavior?
The class now gets stripped immediately on detach, even if the component is still running through an animation. Observe:
What are the steps to reproduce?
Will supply a StackBlitz soon, but this is only noticable when an animation exists on the component sitting in the
ComponentPortal
.An extract from our code:
The text was updated successfully, but these errors were encountered: