lp1827942: Resolved the issue of the form disappearing when it isn't clicked. user/zbanks/lp1827942_angular_protect_modal_closures
authorZavier Banks <zbanks@catalyte.io>
Tue, 17 Sep 2019 20:59:15 +0000 (20:59 +0000)
committerZavier Banks <zbanks@catalyte.io>
Tue, 17 Sep 2019 20:59:15 +0000 (20:59 +0000)
I added a new property to the "options" object inside the "open" function, which resides in the
dialog.component.ts. The static string inside the backdrop property makes the form stay, even if
the backdrop is clicked.

Signed-off-by: Zavier Banks <zbanks@catalyte.io>
Open-ILS/src/eg2/src/app/share/dialog/dialog.component.ts

index 79a5c86..fc1c8e2 100644 (file)
@@ -64,6 +64,7 @@ export class DialogComponent implements OnInit {
             this.finalize();
         }
 
+        options.backdrop="static";
         this.modalRef = this.modalService.open(this.dialogContent, options);
 
         if (this.onOpen$) {