# editor: Hide mouse context menu when modal is opened \(\#29127\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/6d2bdc3bacdbe47b22beca1ec0ed900af333ee0a)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 6d2bdc3bacdbe47b22beca1ec0ed900af333ee0a

Requested commit: 6d2bdc3bacdbe47b22beca1ec0ed900af333ee0a

Commit: 6d2bdc3bacdbe47b22beca1ec0ed900af333ee0a

Tree: d630a0d7c9126e611acb6bec422a86eeb103a2f2

Author: redforks

Committer: GitHub

## Message

```
editor: Hide mouse context menu when modal is opened (#29127)

Closes #28787 

The context menu appears before the modal because it is a Deferred
element, which is always displayed above normal elements.

Release Notes:

Previously, the editor context menu appeared before the Command Palette.
This commit ensures the editor context menu is hidden when a modal,
including the Command Palette, is opened.
```

## Parents

- [9a3434efb406a12a725c8d28aed50939bb3157ae](https://git.cafe/gitcafe/zed/commit/9a3434efb406a12a725c8d28aed50939bb3157ae?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/6d2bdc3bacdbe47b22beca1ec0ed900af333ee0a?format=markdown)
