Skip to content

Commit d8507f8

Browse files
authored
Merge pull request #10278 from IgniteUI/PMiteva/overlay-closing-animation-v.13.0
Fix overlay closing animation duration
2 parents 97ecddd + 3e12fd9 commit d8507f8

File tree

1 file changed

+1
-3
lines changed
  • projects/igniteui-angular/src/lib/services/overlay

1 file changed

+1
-3
lines changed

projects/igniteui-angular/src/lib/services/overlay/overlay.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -745,9 +745,6 @@ export class IgxOverlayService implements OnDestroy {
745745
wrapperElement.style.transitionDuration = '0ms';
746746
return;
747747
}
748-
if (animationOptions.type === AnimationMetadataType.AnimateRef) {
749-
animationOptions = (animationOptions as AnimationAnimateRefMetadata).animation;
750-
}
751748
if (!animationOptions.options || !animationOptions.options.params) {
752749
return;
753750
}
@@ -893,6 +890,7 @@ export class IgxOverlayService implements OnDestroy {
893890
private removeModalClasses(info: OverlayInfo) {
894891
if (info.settings.modal) {
895892
const wrapperElement = info.elementRef.nativeElement.parentElement.parentElement;
893+
this.applyAnimationParams(wrapperElement, info.settings.positionStrategy.settings.closeAnimation);
896894
wrapperElement.classList.remove('igx-overlay__wrapper--modal');
897895
wrapperElement.classList.add('igx-overlay__wrapper');
898896
}

0 commit comments

Comments
 (0)