Skip to content

Commit

Permalink
Merge pull request #10278 from IgniteUI/PMiteva/overlay-closing-anima…
Browse files Browse the repository at this point in the history
…tion-v.13.0

Fix overlay closing animation duration
  • Loading branch information
Lipata authored Oct 12, 2021
2 parents 97ecddd + 3e12fd9 commit d8507f8
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -745,9 +745,6 @@ export class IgxOverlayService implements OnDestroy {
wrapperElement.style.transitionDuration = '0ms';
return;
}
if (animationOptions.type === AnimationMetadataType.AnimateRef) {
animationOptions = (animationOptions as AnimationAnimateRefMetadata).animation;
}
if (!animationOptions.options || !animationOptions.options.params) {
return;
}
Expand Down Expand Up @@ -893,6 +890,7 @@ export class IgxOverlayService implements OnDestroy {
private removeModalClasses(info: OverlayInfo) {
if (info.settings.modal) {
const wrapperElement = info.elementRef.nativeElement.parentElement.parentElement;
this.applyAnimationParams(wrapperElement, info.settings.positionStrategy.settings.closeAnimation);
wrapperElement.classList.remove('igx-overlay__wrapper--modal');
wrapperElement.classList.add('igx-overlay__wrapper');
}
Expand Down

0 comments on commit d8507f8

Please sign in to comment.