diff --git a/projects/angular/src/button/button-group/button-group.ts b/projects/angular/src/button/button-group/button-group.ts index 50a3f96e77..e68623454f 100644 --- a/projects/angular/src/button/button-group/button-group.ts +++ b/projects/angular/src/button/button-group/button-group.ts @@ -161,15 +161,13 @@ export class ClrButtonGroup implements AfterContentInit, AfterViewInit { } private handleFocusOnMenuOpen() { - if (this.menuButtons.length) { - this.toggleService.popoverVisible.pipe(takeUntil(this.destroy$)).subscribe(visible => { - if (visible) { - this.focusHandler.initialize({ - menu: this.menu.nativeElement, - menuToggle: this.menuToggle.nativeElement, - }); - } - }); - } + this.toggleService.popoverVisible.pipe(takeUntil(this.destroy$)).subscribe(visible => { + if (visible) { + this.focusHandler.initialize({ + menu: this.menu.nativeElement, + menuToggle: this.menuToggle.nativeElement, + }); + } + }); } } diff --git a/projects/demo/src/app/button-group/angular/basic-structure/basic-button-group.html b/projects/demo/src/app/button-group/angular/basic-structure/basic-button-group.html index fea7448fcd..1370fcc72e 100644 --- a/projects/demo/src/app/button-group/angular/basic-structure/basic-button-group.html +++ b/projects/demo/src/app/button-group/angular/basic-structure/basic-button-group.html @@ -32,6 +32,7 @@