Merge pull request #30596 from overleaf/mg-context-menu-hide-others

Hide other menus when right-click context menu opens

GitOrigin-RevId: c7a2126ec58ed69520f31ba20fa450a6f1524a3f
This commit is contained in:
Malik Glossop
2026-01-20 09:06:37 +00:00
committed by Copybot
parent 723da5c28a
commit ae5e3543c5
7 changed files with 175 additions and 19 deletions
@@ -0,0 +1,5 @@
import { StateEffect } from '@codemirror/state'
// Effect used to ask any loaded menu/tooltip extension to close itself.
// Used to ensure only one context menu is open at a time.
export const closeAllContextMenusEffect = StateEffect.define<null>()