mi6 / mi6/ic-ui-kit

Internal issue 3244 - IcPopoverMenu automatically exits on mouse up outside of display

Open
#4,476 1 comment 0 reactions 0 assignees View on GitHub
a11y good first issue popover component
Dominant language
TypeScript
Stars
53
Forks
63
Avg merge
2d 4h
Merged PRs (30d)
15

Description

Reproduction steps:
- Enter an IcPopoverMenu
- Click inside the modal
- Release click outside of the modal
- Observe that the modal closes

This can be unexpected for a user e.g. when a user tries to highlight text and releases the mouse outside of the modal, the modal disappears.

**Expected behaviour:**
Releasing click outside the modal should neither close the modal nor activate the menu item clicked

Please include a Cypress test to ensure the fix functions as expected

Contributor guide

Open the contributing guide

Research direction

Start by locating the IcPopoverMenu implementation and identify where its Cypress tests belong. Reproduce the mouse-up sequence, then verify that releasing outside leaves the modal open and does not activate a menu item, with a Cypress test covering the expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cypress, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.