@clr/angular 15.6.0 → 15.7.0

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.
@@ -6644,10 +6644,15 @@ class ClrOptions {
6644
6644
  event.target !== this.focusHandler.textInput) {
6645
6645
  this.toggleService.open = false;
6646
6646
  }
6647
- }), this.items.changes.subscribe(() => {
6648
- setTimeout(() => {
6649
- this.focusHandler.focusFirstActive();
6650
- });
6647
+ }), this.items.changes.subscribe(items => {
6648
+ if (items.length) {
6649
+ setTimeout(() => {
6650
+ this.focusHandler.focusFirstActive();
6651
+ });
6652
+ }
6653
+ else {
6654
+ this.focusHandler.pseudoFocus.pop();
6655
+ }
6651
6656
  }));
6652
6657
  }
6653
6658
  ngOnDestroy() {