@alfresco/adf-content-services 8.4.0-20134968511 → 8.4.0-20161432927

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.
@@ -11318,13 +11318,16 @@ class SearchFacetChipTabbedComponent {
11318
11318
  this.isPopulated = false;
11319
11319
  }
11320
11320
  onMenuOpen() {
11321
- if (this.menuContainer && !this.focusTrap) {
11322
- this.focusTrap = this.focusTrapFactory.create(this.menuContainer.nativeElement);
11323
- }
11321
+ setTimeout(() => {
11322
+ if (this.menuContainer && !this.focusTrap) {
11323
+ this.focusTrap = this.focusTrapFactory.create(this.menuContainer.nativeElement);
11324
+ this.focusTrap.focusInitialElement();
11325
+ }
11326
+ });
11324
11327
  this.chipIcon = 'keyboard_arrow_up';
11325
11328
  }
11326
11329
  onClosed() {
11327
- this.focusTrap.destroy();
11330
+ this.focusTrap?.destroy();
11328
11331
  this.focusTrap = null;
11329
11332
  this.chipIcon = 'keyboard_arrow_down';
11330
11333
  }
@@ -11411,9 +11414,12 @@ class SearchWidgetChipComponent {
11411
11414
  });
11412
11415
  }
11413
11416
  onMenuOpen() {
11414
- if (this.menuContainer && !this.focusTrap) {
11415
- this.focusTrap = this.focusTrapFactory.create(this.menuContainer.nativeElement);
11416
- }
11417
+ setTimeout(() => {
11418
+ if (this.menuContainer && !this.focusTrap) {
11419
+ this.focusTrap = this.focusTrapFactory.create(this.menuContainer.nativeElement);
11420
+ this.focusTrap.focusInitialElement();
11421
+ }
11422
+ });
11417
11423
  this.chipIcon = 'keyboard_arrow_up';
11418
11424
  }
11419
11425
  onClosed() {