focus any necessary input elements on modal shown

This commit is contained in:
Kyle Spearrin 2018-06-27 09:38:44 -04:00
parent 09ef907673
commit f43319ba7a
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ export class ModalComponent extends BaseModalComponent {
});
this.el.on('shown.bs.modal', () => {
this.onShown.emit();
this.el.find('input[appAutoFocus]').focus();
});
this.el.on('hide.bs.modal', () => {
this.onClose.emit();