1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

[PM-19923] Update autofocus directive to be more aggressive in focusing (#14368)

* Update autofocus directive to be more aggressive in focusing

* Handle checkVisibility not existing (safari < 17.4)

* Tweak phrasing

* Change approach
This commit is contained in:
Oscar Hinton
2025-04-22 18:46:35 +02:00
committed by GitHub
parent d70d81dec6
commit 490a46e9b6
3 changed files with 46 additions and 14 deletions

View File

@@ -49,7 +49,7 @@ export class SearchComponent implements ControlValueAccessor, FocusableElement {
@Input() autocomplete: string;
getFocusTarget() {
return this.input.nativeElement;
return this.input?.nativeElement;
}
onChange(searchText: string) {