mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-06 09:20:43 +01:00
focus any necessary input elements on modal shown
This commit is contained in:
parent
09ef907673
commit
f43319ba7a
@ -39,6 +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.on('hide.bs.modal', () => {
|
this.el.on('hide.bs.modal', () => {
|
||||||
this.onClose.emit();
|
this.onClose.emit();
|
||||||
|
Loading…
Reference in New Issue
Block a user