Skip to content

Commit

Permalink
Fixed #14473
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Jan 4, 2024
1 parent 7b4d0a1 commit 00932a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1626,7 +1626,7 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV
DomHandler.focus(event.shiftKey ? this.lastHiddenFocusableElementOnOverlay.nativeElement : this.firstHiddenFocusableElementOnOverlay.nativeElement);
event.preventDefault();
} else {
if (this.focusedOptionIndex() !== -1) {
if (this.focusedOptionIndex() !== -1 && this.overlayVisible) {
const option = this.visibleOptions()[this.focusedOptionIndex()];
this.onOptionSelect(event, option);
}
Expand Down

0 comments on commit 00932a6

Please sign in to comment.