From e1f78c6a287bc8279f5d0427552e899fe2786a21 Mon Sep 17 00:00:00 2001 From: Zavier Banks Date: Tue, 17 Sep 2019 20:59:15 +0000 Subject: [PATCH] lp1827942: prevent clicking outside an Angular modal from closing it 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 Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/share/dialog/dialog.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/Open-ILS/src/eg2/src/app/share/dialog/dialog.component.ts b/Open-ILS/src/eg2/src/app/share/dialog/dialog.component.ts index 7f5a91f40a..31fa2489f4 100644 --- a/Open-ILS/src/eg2/src/app/share/dialog/dialog.component.ts +++ b/Open-ILS/src/eg2/src/app/share/dialog/dialog.component.ts @@ -83,6 +83,7 @@ export class DialogComponent implements OnInit { this.finalize(); } + options.backdrop="static"; this.modalRef = this.modalService.open(this.dialogContent, options); DialogComponent.instances[this.identifier] = this; -- 2.11.0