# Bug DREAM-1033 - Drop modal stays open when an ActionMenu button is clicked

Project: Stream Design System
Status: closed
URL: https://community.openproject.org/work_packages/DREAM-1033

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Frontend components and Primer design system |
| Target versions | 18.0.0 |
| Observed in versions | 18.0.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Open the work packages page.

2.  Open the **Baseline** drop modal from the toolbar.

3.  Right click a row in the work packages table to open the context menu.

### What is the buggy behavior?

The **row context** menu opens and the baseline drop modal stays open behind it.

### What is the expected behavior?

The drop modal closes when the menu opens; only one overlay is open at a time.

These same issue affects the *Include projects* overlay.

### Screenshots

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/926976/content">

### Technical notes

`spot-drop-modal` closes on a bubbling `click` on `document.body`. Primer's `<action-menu>` stops propagation of its button's click (upstream since 2023), so the drop modal never sees it. Fix in OpenProject: close the drop modal on an outside pointer press, as native popovers do. No Primer change. Migration of the drop modal to a native popover: <mention class="mention" data-id="DREAM-1046" data-type="work_package" data-text="#DREAM-1046">#DREAM-1046</mention>.

### Environment information

**Core build**

[c76f688f3b3858410d2d76ceeb1f1b7eb05e6309](https://qa.openproject-stage.com/external_redirect?url=https%3A%2F%2Fgithub.com%2Fopf%2Fopenproject%2Fcommit%2Fc76f688f3b3858410d2d76ceeb1f1b7eb05e6309)

**Product version**

[ff3e77f4886b9ea9591ab776d18c039e67b364de](https://qa.openproject-stage.com/external_redirect?url=https%3A%2F%2Fgithub.com%2Fopf%2Fsaas-openproject%2Fcommit%2Fff3e77f4886b9ea9591ab776d18c039e67b364de)

**Core version**

OpenProject 18.0.0
