mirror of
https://github.com/bitwarden/web
synced 2025-12-16 00:03:25 +00:00
autofocus any type of element on modal shown
This commit is contained in:
@@ -39,7 +39,7 @@ export class ModalComponent extends BaseModalComponent {
|
|||||||
});
|
});
|
||||||
this.el.on('shown.bs.modal', () => {
|
this.el.on('shown.bs.modal', () => {
|
||||||
this.onShown.emit();
|
this.onShown.emit();
|
||||||
this.el.find('input[appAutoFocus]').focus();
|
this.el.find('*[appAutoFocus]').focus();
|
||||||
});
|
});
|
||||||
this.el.on('hide.bs.modal', () => {
|
this.el.on('hide.bs.modal', () => {
|
||||||
this.onClose.emit();
|
this.onClose.emit();
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
{{'deleteSelectedItemsDesc' | i18n: cipherIds.length}}
|
{{'deleteSelectedItemsDesc' | i18n: cipherIds.length}}
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button appBlurClick type="submit" class="btn btn-danger btn-submit" [disabled]="form.loading">
|
<button appBlurClick appAutoFocus type="submit" class="btn btn-danger btn-submit" [disabled]="form.loading">
|
||||||
<i class="fa fa-spinner fa-spin"></i>
|
<i class="fa fa-spinner fa-spin"></i>
|
||||||
<span>{{'delete' | i18n}}</span>
|
<span>{{'delete' | i18n}}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user