LP1904036 Prompt dialog focus input followup
authorBill Erickson <berickxx@gmail.com>
Mon, 8 Feb 2021 15:12:52 +0000 (10:12 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 19 Jan 2022 16:57:55 +0000 (11:57 -0500)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
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(); }
         });
     }