Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

all modals should be closed by clicking outside of them

bsatarnejad5741b3c0be3f
diff --git a/frontend/src/app/components/op-modals/op-modal.service.ts b/frontend/src/app/components/op-modals/op-modal.service.ts
index 2bc209c73bc..bbbc61ef50a 100644
--- a/frontend/src/app/components/op-modals/op-modal.service.ts
+++ b/frontend/src/app/components/op-modals/op-modal.service.ts
@@ -50,7 +50,7 @@ export class OpModalService {
if (this.active &&
!this.opening &&
this.active.closeOnOutsideClick &&
- !this.portalHostElement.contains(evt.target as Element)) {
+ this.activeModal[0] === evt.target as Element) {
this.close();
}
});