Skip to content

Commit

Permalink
Merge 8c58591 into 2a7d05f
Browse files Browse the repository at this point in the history
  • Loading branch information
giriprashaad committed Nov 22, 2022
2 parents 2a7d05f + 8c58591 commit 4e1b480
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ng-select/lib/ng-select.component.ts
Expand Up @@ -484,7 +484,9 @@ export class NgSelectComponent implements OnDestroy, OnChanges, OnInit, AfterVie
}

focus() {
this.searchInput.nativeElement.focus();
if(!this.searchInput.nativeElement.readOnly){
this.searchInput.nativeElement.focus();
};
}

blur() {
Expand Down

0 comments on commit 4e1b480

Please sign in to comment.