Skip to content

chore cover menu's checkbox selection behavior (non closing)#1586

Open
brtbrt wants to merge 3 commits into
masterfrom
mbertamini/iceballos-menu-interaction-tested
Open

chore cover menu's checkbox selection behavior (non closing)#1586
brtbrt wants to merge 3 commits into
masterfrom
mbertamini/iceballos-menu-interaction-tested

Conversation

@brtbrt

@brtbrt brtbrt commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@brtbrt
brtbrt requested review from Copilot and yceballost June 24, 2026 16:10
@brtbrt brtbrt added the AI AI Generated label Jun 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates MenuItem checkbox behavior so selecting a checkbox option does not close the menu, and adds a regression test to lock that interaction in.

Changes:

  • Keep the menu open when clicking a MenuItem with controlType="checkbox" by removing the closeMenu() call from the checkbox onChange handler.
  • Add a unit test verifying the menu remains open after clicking a checkbox menu item and that the handler is invoked.

Reviewed changes

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

File Description
src/menu.tsx Stops closing the menu when interacting with checkbox menu items.
src/__tests__/menu-test.tsx Adds test coverage to ensure checkbox menu items don’t close the menu on click.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

Copy link
Copy Markdown

Size stats

master this branch diff
Total JS 16.2 MB 16.2 MB 0 B
JS without icons 2.07 MB 2.07 MB 0 B
Lib overhead 92.5 kB 92.5 kB 0 B
Lib overhead (gzip) 19.9 kB 19.9 kB 0 B

@github-actions

Copy link
Copy Markdown

Deploy preview for mistica-web ready!

Project:mistica-web
Status: ✅  Deploy successful!
Preview URL:https://mistica-cghtqk6sc-flows-projects-65bb050e.vercel.app
Latest Commit:adafa3b

Deployed with vercel-action

@brtbrt brtbrt changed the title mbertamini/iceballos-menu-interaction-tested chore cover menu's checkbox selection behavior (non closing) Jun 24, 2026
@github-actions

Copy link
Copy Markdown

Accessibility report

3 problems detected
components-accordions--accordion-story [Movistar-new] (1 violations)
components-accordions--accordion-story [O2-new] (1 violations)
components-accordions--accordion-story [Blau] (1 violations)

ℹ️ You can run this locally by executing yarn audit-accessibility.

@brtbrt
brtbrt requested a review from a team as a code owner July 15, 2026 21:57
@brtbrt
brtbrt force-pushed the master branch 2 times, most recently from 59b086a to ac8e28d Compare July 15, 2026 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI AI Generated

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants