# Bug OP-7231 - Modal does not close on click outside

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-7231

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 10.6.2 |
| Observed in versions |  |
| Sprint | 10.6.2 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### **Steps to reproduce:**

1.  Go the Work Package table
2.  In the more menu, select &quot;Export...&quot;
3.  Click somewhere next to the modal

### **Actual Behavior**

*   Nothing happens

### **Expected Behavior**

*   The modal should close on click outside of the modal
*   **Note:** This happens also for other modals which were supposed to close on a click outside. In the code, have a look at the `closeOnOutsideClick` attribute. The check in the `op-modal.service.ts` seems to fail.
