Files
overleaf-cep/services/web/frontend/js/features/source-editor/utils/close-all-context-menus-effect.ts
Malik Glossop ae5e3543c5 Merge pull request #30596 from overleaf/mg-context-menu-hide-others
Hide other menus when right-click context menu opens

GitOrigin-RevId: c7a2126ec58ed69520f31ba20fa450a6f1524a3f
2026-01-20 09:06:37 +00:00

6 lines
250 B
TypeScript

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>()