message: fix(modals): hotfix/modal-nested-close-on-esc solved
diff: @@ -254,6 +254,7 @@ export class ModalDirective implements AfterViewInit, OnDestroy {
  this.resetScrollbar();
  }
  this.resetAdjustments();
  + this.focusOtherModal();
  this.onHidden.emit(this);
  });
  }
  @@ -335,6 +336,14 @@ export class ModalDirective implements AfterViewInit, OnDestroy {
  // }
  // }
  + protected focusOtherModal() {
  + const otherOpenedModals = this._element.nativeElement.parentElement.querySelectorAll('.in[bsModal]');
  + if (!otherOpenedModals.length) {
  + return;
  + }
  + this._renderer.invokeElementMethod(otherOpenedModals[otherOpenedModals.length - 1], 'focus');
  + }
  +
  /** @internal */
  protected resetAdjustments(): void {
  this._renderer.setElementStyle(this._element.nativeElement, 'paddingLeft', '');
  