1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-14 10:26:19 +01:00

[PM-13895] Autofocus on Vault Search Browser (#11888)

* use appAutoFocus directive for browser vault v2 search
This commit is contained in:
Jason Ng 2024-11-12 10:38:48 -05:00 committed by GitHub
parent ac0e008e3c
commit 40f2e15cec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,7 @@
[placeholder]="'search' | i18n"
[(ngModel)]="searchText"
(ngModelChange)="onSearchTextChanged()"
appAutofocus
>
</bit-search>
</div>

View File

@ -23,7 +23,11 @@
</div>
<!-- Show search & filters outside of the scroll area of the page -->
<div slot="above-scroll-area" class="tw-p-4" *ngIf="vaultState !== VaultStateEnum.Empty">
<div
slot="above-scroll-area"
class="tw-p-4"
*ngIf="vaultState !== VaultStateEnum.Empty && !(loading$ | async)"
>
<app-vault-v2-search> </app-vault-v2-search>
<app-vault-list-filters></app-vault-list-filters>
</div>