@trudb/tru-common-lib 0.2.49 → 0.2.50

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.
@@ -8413,12 +8413,14 @@ class TruDesktopWindowStateMonitor {
8413
8413
  }
8414
8414
  onFocusIn(event) {
8415
8415
  if (this.active) {
8416
- let target = event.target;
8417
- this.focusableElements = this.getFocusableChildElements();
8418
- let firstFocusableElement = this.focusableElements[0];
8419
- if (target !== null && !this.el.nativeElement.contains(target)) {
8420
- firstFocusableElement.focus();
8421
- }
8416
+ setTimeout(() => {
8417
+ let target = event.target;
8418
+ this.focusableElements = this.getFocusableChildElements();
8419
+ let firstFocusableElement = this.focusableElements[0];
8420
+ if (target !== null && !this.el.nativeElement.contains(target)) {
8421
+ firstFocusableElement.focus();
8422
+ }
8423
+ });
8422
8424
  }
8423
8425
  }
8424
8426
  ngOnChanges(changes) {