@ts-core/angular 13.0.59 → 13.0.62

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.
@@ -4142,8 +4142,7 @@ class WindowImpl extends WindowBase {
4142
4142
  return this.properties.reference;
4143
4143
  }
4144
4144
  isNeedClickStopPropagation(event) {
4145
- // return !this.isWasOnTop;
4146
- if (!this.isWasOnTop && !this.isOnTop) {
4145
+ if (!this.isWasOnTop) {
4147
4146
  return true;
4148
4147
  }
4149
4148
  let element = _.find(this.elements, item => item.location.nativeElement === event.target);
@@ -4674,7 +4673,7 @@ class WindowService extends Destroyable {
4674
4673
  let currentIndex = this.topZIndex - 2;
4675
4674
  let windows = [...this.windowsArray, this.sheet.window];
4676
4675
  for (let window of windows) {
4677
- if (_.isNil(window.container)) {
4676
+ if (_.isNil(window) || _.isNil(window.container)) {
4678
4677
  continue;
4679
4678
  }
4680
4679
  window.isOnTop = window === topWindow;