From f43319ba7a08bec1029d2278d68d07b6a118ea65 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 27 Jun 2018 09:38:44 -0400 Subject: [PATCH] focus any necessary input elements on modal shown --- src/app/modal.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/modal.component.ts b/src/app/modal.component.ts index 51d040ad0a..5c8ae02d44 100644 --- a/src/app/modal.component.ts +++ b/src/app/modal.component.ts @@ -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();