From 246d605e5cbc0a19753a81100a4e39046e74db26 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 27 Jun 2018 09:45:26 -0400 Subject: [PATCH] autofocus any type of element on modal shown --- src/app/modal.component.ts | 2 +- src/app/vault/bulk-delete.component.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/modal.component.ts b/src/app/modal.component.ts index 5c8ae02d44..aef1f4f7ea 100644 --- a/src/app/modal.component.ts +++ b/src/app/modal.component.ts @@ -39,7 +39,7 @@ export class ModalComponent extends BaseModalComponent { }); this.el.on('shown.bs.modal', () => { this.onShown.emit(); - this.el.find('input[appAutoFocus]').focus(); + this.el.find('*[appAutoFocus]').focus(); }); this.el.on('hide.bs.modal', () => { this.onClose.emit(); diff --git a/src/app/vault/bulk-delete.component.html b/src/app/vault/bulk-delete.component.html index a09baf30c3..de082860c9 100644 --- a/src/app/vault/bulk-delete.component.html +++ b/src/app/vault/bulk-delete.component.html @@ -13,7 +13,7 @@ {{'deleteSelectedItemsDesc' | i18n: cipherIds.length}}