LP1904036 Prompt dialog focus input followup
authorBill Erickson <berickxx@gmail.com>
Mon, 8 Feb 2021 15:12:52 +0000 (10:12 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:23 +0000 (20:13 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/share/dialog/prompt.component.ts

index 68ca8b1..1a1a87b 100644 (file)
@@ -27,7 +27,7 @@ export class PromptDialogComponent extends DialogComponent implements OnInit {
 
     ngOnInit() {
         this.onOpen$.subscribe(_ => {
-            const node = document.getElementById(this.inputDomId);
+            const node = document.getElementById(this.inputDomId) as HTMLInputElement;
             if (node) { node.focus(); node.select(); }
         });
     }