Skip to content

Commit

Permalink
Revert "setting focus to input element only if its not readonly, this…
Browse files Browse the repository at this point in the history
… prevents safari 16 to jump to the top (#2134)"

This reverts commit 97bb1ff.
  • Loading branch information
pavankjadda committed Mar 24, 2023
1 parent 97bb1ff commit d0dff95
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ng-select/lib/ng-select.component.ts
Expand Up @@ -484,9 +484,7 @@ export class NgSelectComponent implements OnDestroy, OnChanges, OnInit, AfterVie
}

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

blur() {
Expand Down

0 comments on commit d0dff95

Please sign in to comment.