igniteui-angular 12.3.14 → 12.3.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16244,8 +16244,8 @@
16244
16244
  }
16245
16245
  this.updateSize(info);
16246
16246
  info.settings.positionStrategy.position(info.elementRef.nativeElement.parentElement, { width: info.initialSize.width, height: info.initialSize.height }, document, true, info.settings.target);
16247
+ this.addModalClasses(info);
16247
16248
  if (info.settings.positionStrategy.settings.openAnimation) {
16248
- this.buildAnimationPlayers(info);
16249
16249
  this.playOpenAnimation(info);
16250
16250
  }
16251
16251
  else {
@@ -16342,6 +16342,7 @@
16342
16342
  if (eventArgs.cancel) {
16343
16343
  return;
16344
16344
  }
16345
+ this.removeModalClasses(info);
16345
16346
  if (info.settings.positionStrategy.settings.closeAnimation) {
16346
16347
  this.playCloseAnimation(info, event);
16347
16348
  }
@@ -16515,7 +16516,6 @@
16515
16516
  // to eliminate flickering show the element just before animation start
16516
16517
  info.wrapperElement.style.visibility = '';
16517
16518
  info.visible = true;
16518
- this.addModalClasses(info);
16519
16519
  info.openAnimationPlayer.play();
16520
16520
  };
16521
16521
  IgxOverlayService.prototype.playCloseAnimation = function (info, event) {
@@ -16541,7 +16541,6 @@
16541
16541
  }
16542
16542
  this.animationStarting.emit({ id: info.id, animationPlayer: info.closeAnimationPlayer, animationType: 'close' });
16543
16543
  info.event = event;
16544
- this.removeModalClasses(info);
16545
16544
  info.closeAnimationPlayer.play();
16546
16545
  };
16547
16546
  // TODO: check if applyAnimationParams will work with complex animations