mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +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.onShown.emit();
|
||||
this.el.find('input[appAutoFocus]').focus();
|
||||
this.el.find('*[appAutoFocus]').focus();
|
||||
});
|
||||
this.el.on('hide.bs.modal', () => {
|
||||
this.onClose.emit();
|
||||
|
||||
Reference in New Issue
Block a user