NASA-AMMOS / NASA-AMMOS/plandev-ui

Enforce only one active context menu at a time

Open
#581 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

refactor
Dominant language
Svelte
Stars
42
Forks
14
Avg merge
1d 16h
Merged PRs (30d)
10

Description

Right now, clicking anywhere on the body will close any active context menus, but right clicking to open a new context menu will not trigger this behavior, allowing for several context menus to stack up/overlap. We should look into refactoring the context menu component to enforce only allowing one to be open at a time.

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the context menu component and reproduce the issue by right-clicking in multiple places while a menu is open. Trace how body clicks close menus, then verify that opening a new context menu closes the existing one so only one remains visible.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.