Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/npm_and_yarn/dns-packet-5.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pavankjadda committed Mar 24, 2023
2 parents 7dfd0af + 97bb1ff commit ff1bfab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ng-select/lib/ng-select.component.ts
Original file line number Diff line number Diff line change
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 ff1bfab

Please sign in to comment.