@trudb/tru-common-lib 0.2.50 → 0.2.52

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.
@@ -8420,14 +8420,14 @@ class TruDesktopWindowStateMonitor {
8420
8420
  if (target !== null && !this.el.nativeElement.contains(target)) {
8421
8421
  firstFocusableElement.focus();
8422
8422
  }
8423
- });
8423
+ }, 0); // Allow focus to settle
8424
8424
  }
8425
8425
  }
8426
8426
  ngOnChanges(changes) {
8427
8427
  this.setWindowState();
8428
8428
  if (this.active) {
8429
8429
  this.tabListener = this.renderer.listen('document', 'keydown', this.onKeydown.bind(this));
8430
- this.focusListener = this.renderer.listen('document', 'focusin', this.onFocusIn.bind(this));
8430
+ this.focusListener = this.renderer.listen('window', 'focusin', this.onFocusIn.bind(this));
8431
8431
  }
8432
8432
  else {
8433
8433
  if (typeof this.tabListener === 'function')