1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

manually focus search. only search on 2 characters

This commit is contained in:
Kyle Spearrin
2018-04-18 15:49:03 -04:00
parent f783826c33
commit 152fc981a1
3 changed files with 9 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit {
}
});
setTimeout(() => {
window.setTimeout(() => {
if (!this.editMode) {
if (this.cipher.name != null && this.cipher.name !== '') {
document.getElementById('loginUsername').focus();